ManualCharacterTurn (ManualTurn.cs)
February 9, 2024 ยท View on GitHub
Namespace: Unity.TinyCharacterController.Control
Summary:
ManualCharacterTurn (ManualTurn.cs) is a component for manually setting the orientation of a character. The use of ManualControl is recommended over this.
Features and Operation:
- Character Orientation Setting: Uses the
_directionvector to specify the character's orientation. - Turn Priority: The priority is 0 if
_directionisVector3.zero; otherwise, it followsTurnPriority. - Turn Speed: Sets the speed of direction change with
TurnSpeed, ranging from -1 to 50.
Properties
| Name | Description |
|---|---|
_direction | Vector representing the character's orientation. |
TurnPriority | Priority of turning. |
TurnSpeed | Speed of orientation change. |
Methods
- There are no public methods.