MovementState
Class in Zigurous.CharacterController
Declaration
[Serializable]
public sealed class MovementState
Description
A context object that represents a character's movement state.
Properties
flags | The active movement flags. |
previousFlags | The movement flags from the last frame. |
speed | The speed of the character. |
input | The movement vector read from the input system after deadzone processing is applied. |
localDirection | The direction of the character in local space. |
direction | The direction of the character in world space. |
gravity | The current gravity force applied to the character. |
externalForce | A custom external force applied to the character. This value is reset each frame. |
rotation | The rotation of the character. |
ground | The ground contact info. |
Methods
Set | Turns on or off the given movement flag(s). |