Api Sandbox Movement MoveMode
class

MoveMode

public abstract class MoveMode : Component

A move mode for this character

Properties

Name Type Description
AllowGrounding virtual Boolean
AllowFalling virtual Boolean
Controller PlayerController

Methods

virtual Void UpdateAnimator(SkinnedModelRenderer renderer)

Update the animator which is available at Controller.Renderer.

virtual Transform CalculateEyeTransform()

Get the position of the player's eye

Void UpdateCamera(CameraComponent cam)

Called to update the camera each frame

virtual Int32 Score(PlayerController controller)

Highest number becomes the new control mode

virtual Void PrePhysicsStep()

Called before the physics step is run

virtual Void PostPhysicsStep()

Called after the physics step is run

virtual Void UpdateRigidBody(Rigidbody body)
virtual Void AddVelocity()
virtual Void OnModeBegin()

This mode has just started

virtual Void OnModeEnd(MoveMode next)

This mode has stopped. We're swapping to another move mode.

virtual Boolean IsStandableSurace(InAttribute) result)
virtual Boolean IsStandableSurface(InAttribute) result)
virtual Vector3 UpdateMove(Rotation eyes, Vector3 input)

Read inputs, return WishVelocity

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