public abstract class Sandbox.Movement.MoveMode : Sandbox.Component
A move mode for this character
Constructors
Showing 1 constructors
protected MoveMode()
No results match this filter.
Methods
Showing 19 methods
public virtual void AddVelocity()
public virtual Transform CalculateEyeTransform()
Get the position of the player's eye
Implementations
public virtual bool IsStandableSurace(Sandbox.SceneTraceResult& modreq(System.Runtime.InteropServices.InAttribute) result)
public virtual bool IsStandableSurface(Sandbox.SceneTraceResult& modreq(System.Runtime.InteropServices.InAttribute) result)
public virtual void OnModeBegin()
This mode has just started
Implementations
public virtual void OnModeEnd(Sandbox.Movement.MoveMode next)
This mode has stopped. We're swapping to another move mode.
Implementations
protected virtual void OnRotateRenderBody(Sandbox.SkinnedModelRenderer renderer)
Updates the `Sandbox.Component.WorldRotation` of `renderer`.
protected virtual void OnUpdateAnimatorLookDirection(Sandbox.SkinnedModelRenderer renderer)
Set animation parameters on `renderer` to look towards `Sandbox.Movement.MoveMode.CalculateEyeTransform`.
protected virtual void OnUpdateAnimatorState(Sandbox.SkinnedModelRenderer renderer)
Sets animation parameters on `renderer` describing the movement style, like swimming, falling, or ducking.
Implementations
protected virtual void OnUpdateAnimatorVelocity(Sandbox.SkinnedModelRenderer renderer)
Sets animation parameters on `renderer` based on the current `Sandbox.PlayerController.Velocity` and `Sandbox.PlayerController.WishVelocity`.
public virtual void PostPhysicsStep()
Called after the physics step is run
public virtual void PrePhysicsStep()
Called before the physics step is run
public virtual int Score(Sandbox.PlayerController controller)
Highest number becomes the new control mode
Implementations
protected void StickToGround(float maxDistance)
If we're on the ground, make sure we stay there by falling to the ground
protected void TrySteppingUp(float maxDistance)
If we're approaching a step, step up if possible
public virtual void UpdateAnimator(Sandbox.SkinnedModelRenderer renderer)
Update the animator which is available at Controller.Renderer.
public void UpdateCamera(Sandbox.CameraComponent cam)
Called to update the camera each frame
public virtual Vector3 UpdateMove(Rotation eyes, Vector3 input)
Read inputs, return WishVelocity
Implementations
public virtual void UpdateRigidBody(Sandbox.Rigidbody body)
Implementations
No results match this filter.
Properties
Showing 3 properties
public virtual bool Sandbox.Movement.MoveMode.AllowFalling { get; set; }
public virtual bool Sandbox.Movement.MoveMode.AllowGrounding { get; set; }
public Sandbox.PlayerController Sandbox.Movement.MoveMode.Controller { get; set; }
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox.Movement |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.Movement.MoveMode |