class MoveMode : Component

robot_2Generated
code_blocksInput

Description

The MoveMode class in the Sandbox.Movement namespace is an abstract class that defines a movement mode for a character. It extends the Component class, allowing it to be used as a component within the s&box game framework.

Members

Instance Methods

Member Name Summary
UpdateAnimator Update the animator which is available at Controller.Renderer.
Score Highest number becomes the new control mode.
PrePhysicsStep Called before the physics step is run.
PostPhysicsStep Called after the physics step is run.
UpdateRigidBody Updates the rigid body.
AddVelocity Adds velocity to the movement.
OnModeBegin This mode has just started.
OnModeEnd This mode has stopped. We're swapping to another move mode.
IsStandableSurace Determines if the surface is standable.
IsStandableSurface Determines if the surface is standable.
UpdateMove Read inputs, return WishVelocity.

Instance Properties

Member Name Summary
AllowGrounding Indicates if grounding is allowed.
AllowFalling Indicates if falling is allowed.
Controller Gets the associated player controller.