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.
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.
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. |
Member Name | Summary |
---|---|
AllowGrounding | Indicates if grounding is allowed. |
AllowFalling | Indicates if falling is allowed. |
Controller | Gets the player controller associated with this move mode. |