MovementHandlerThirdPersonAdventure
Class in Zigurous.CharacterController
Inherits from MovementHandler
Declaration
public class MovementHandlerThirdPersonAdventure : MovementHandler
Description
A movement handler that moves the character relative to the input in relation to the camera. The character will always move forward while rotating to face the direction of the input. For example, if the character moves backwards, then they will rotate towards the camera and begin walking forward in that direction. This movement style should be used in conjunction with a third person camera setup.
Static Properties
Instance | The shared instance of the third person adventure movement handler. |
Properties
movementStyle | The type of movement style. |
Methods
GetDirection | Determines the character's movement direction. |
GetRotation | Determines the character's rotation. |
GetAnimationDirection | Determines the character's direction for animation purposes. This is usually the character's forward direction normalized in local space. |
Inherited
Properties
movableConditions | The conditions that must be met for the character to move. |
unmovableConditions | The conditions that prevent the character from moving. |