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 _direction vector to specify the character's orientation.
  • Turn Priority: The priority is 0 if _direction is Vector3.zero; otherwise, it follows TurnPriority.
  • Turn Speed: Sets the speed of direction change with TurnSpeed, ranging from -1 to 50.

Properties

NameDescription
_directionVector representing the character's orientation.
TurnPriorityPriority of turning.
TurnSpeedSpeed of orientation change.

Methods

  • There are no public methods.