- Home /
Determine direction of Slerp
How do we control the path that Slerp will take when the two vectors are pointing exactly the opposite directions?
Example below; how do we use Slerp and tell it to rotate along the green path from negative x to positive x, as opposed to blue?
Answer by Bunny83 · Nov 03, 2016 at 02:29 AM
Actually Slerp isn't defined for an angle of 180°. It will result in an anomaly since the denominator will be "0". So Unity's Slerp implementation most likely picks a hardcoded direction if no direction can be determined. You can't change the behaviour. If you want a specific direction you shouldn't use Slerp.
Your answer
Follow this Question
Related Questions
Rotation direction in coroutine 2 Answers
Quaternion based slerp to make homing projectile doesn't turn 1 Answer
(s)lerp y-rotation to the direction of velocity 0 Answers
Third person Character Controller slowing down when camera is pointing towards the ground 2 Answers
Rotate object to target position 1 Answer