API ReferenceSandbox.Movement

MoveModeSwimclass

The character is swimming

objectMoveModeMoveModeSwim
Namespace
Sandbox.Movement
Assembly
Sandbox.Engine
Declaration
public class Sandbox.Movement.MoveModeSwim : Sandbox.Movement.MoveMode

Constructors1

Showing 1 constructors

Methods6

Showing 6 methods

protected virtual void OnFixedUpdate()PROTECTEDVIRTUALFIXED TICK

Returns:void

public virtual void OnModeBegin()PUBLICVIRTUAL

Returns:void

public virtual void OnModeEnd(Sandbox.Movement.MoveMode next)PUBLICVIRTUAL

ParameterTypeDescription
nextMoveMode
Returns:void

public virtual void UpdateRigidBody(Sandbox.Rigidbody body)PUBLICVIRTUALPER-FRAME

ParameterTypeDescription
bodyRigidbody
Returns:void

Properties3

Showing 3 properties

public int Sandbox.Movement.MoveModeSwim.Priority { get; set; }PUBLICGETSET

Returns:int

public float Sandbox.Movement.MoveModeSwim.SwimLevel { get; set; }PUBLICGETSET

Returns:float

public float Sandbox.Movement.MoveModeSwim.WaterLevel { get; set; }PUBLICGETSET

We will update this based on how much you're in a "water" tagged trigger.

Returns:float

On this page