Function MecanimBridge.RotateTowards
RotateTowards
(Vector3 direction, float maxDegrees)
Calculates a rotation closer to the desired direction.
Protected
Quaternion RotateTowards (
direction | Direction in the movement plane to rotate toward. |
|
float | maxDegrees | Maximum number of degrees to rotate this frame. |
Calculates a rotation closer to the desired direction.
Return
The new rotation for the character