LookTargetControl

February 9, 2024 ยท View on GitHub

Certainly! Now, I'll provide the English translation of the analysis for the LookTargetControl code.

LookTargetControl

Namespace: Unity.TinyCharacterController.Control


Summary:

LookTargetControl is a component used to orient towards a specified Target. If Target is not set, the Priority of this component becomes 0.

Features and Operation:

  • Target Orientation: Aims the character towards the direction of the specified Target.
  • Priority Control: If the Priority is higher than other components, the character will face the direction of Target.
  • Speed Adjustment: The turning speed can be adjusted with TurnSpeed. Setting it to -1 makes the character face the target immediately.

Properties

NameDescription
TargetTransform of the target. If null, priority is disabled.
PriorityPriority of the turning action.
TurnSpeedSpeed of orientation change, adjustable from -1 to 30.

Methods

  • There are no public methods.