Question by
dniwe_kore · Apr 24, 2020 at 07:21 AM ·
c#rotation
Quaternion RotateTowards issue
direction = Quaternion.LookRotation(currentTargetPos - transform.position);
transform.rotation = Quaternion.RotateTowards(transform.rotation, direction, rotSpeedMax);
it called in FixedUpdate(). Instead of rotating the shortest way, it rotates by spiral youtube
Comment
Your answer
Follow this Question
Related Questions
How do I control the camera with my mouse? 0 Answers
Why the values in the hierarchy and the values in the code are different ? 0 Answers
Script to rotate object stops working when the X is greater than its own. 0 Answers
Struggling to get the rotation the player is moving in. 1 Answer
Rotation starts freaking out when I put my cursor on it. 1 Answer