Merlins Beard . Core . Focus
Serialized Fields
Target :: Target
The Target is serialized for debugging purposes only. Don’t set this field.
Turn Speed :: float
Properties
Target :: Target
Methods
Set Target ( New Target :: Target )
Sets the Target or clears the Target if null is passed in.
Clear Target ( )
Sets the target to null.
Distance To Target ( )
Returns the distance from the Game Object to the Target or infinity if the Target is null.
Look Rotation ( )
Returns a Quaternion that is the rotation between the Game Object and the Target.
Turn To Face Target ( )
Uses Look Rotation to Slerp between the Game Object’s rotation and the Target’s position.
Angle To Target ( )
Returns the angle between the Game Object and the Target.