MovementController
Class in Zigurous.CharacterController
Declaration
public sealed class MovementController : MonoBehaviour
Description
Controls all movement-related actions and abilities of a character.
Properties
character | The character being controlled by the movement controller. |
characterPosition | The current position of the character (Read only). |
characterRotation | The current rotation of the character (Read only). |
characterEulerAngles | The current euler angles of the character (Read only). |
characterForward | The current forward axis of the character (Read only). |
profile | The instanced movement settings profile used by the controller. |
sharedProfile | The shared movement settings profile used by the controller. |
state | The current movement state of the character. |
processes | The movement process manager for the controller. |
input | The movement input manager for the controller. |
movementHandler | The active movement style handler of the character. |
movementStyle | The type of movement style that determines how the character moves and rotates relative to the look transform. |
camera | The camera the character moves relative to. Camera.main will be used if not set. |
animator | The animator component attached to the character. |
stamina | The character's stamina resource (Read only). |
usesStamina | Whether the character uses stamina (Read only). |
Methods
SetMovementProfile | Applies the movement settings profile to the controller. |
SetMovementStyle | Sets the movement style for the controller to use. |
SetMovementHandler | Sets the movement handler for the controller to use. |
GetProcess<T> | Returns the movement process of the specified type. |