Api Sandbox Movement SitMoveMode
class

SitMoveMode

public sealed class SitMoveMode : MoveMode

The character is sitting

Constructors

SitMoveMode()

Methods

virtual Int32 Score(PlayerController controller)

Score this move mode highly if we're parented to a chair

virtual Void UpdateAnimator(SkinnedModelRenderer renderer)

Update the animator while sitting in a chair

virtual Void OnModeBegin()

Entering the chair, disable body and collider

virtual Void OnModeEnd(MoveMode next)

Leaving the chair, re-enable body and collider

virtual Vector3 UpdateMove(Rotation eyes, Vector3 input)

Move is always zero while sitting

virtual Transform CalculateEyeTransform()

Get the eye transform from the chair we're sitting in

Assembly: Sandbox.Engine Namespace: Sandbox.Movement Full Name: Sandbox.Movement.SitMoveMode