Quantcast
Channel: Questions in topic: "quaternion.slerp"
Viewing all articles
Browse latest Browse all 133

By-pass the 'shortest route' aspect of Quaternion.Slerp

$
0
0
Hey, when using Quaternion.Slerp for rotating an object, the function will pick the shortest path to get to that position. Is there any way to bypass this and force the direction of the rotation (clockwise or counter-clockwise) or should I use another function? I need to rotate a door let's say from 0 degrees to 225 degrees. But instead of the door going through each and every one of the 225 degrees, it rotates the other way around so it only has to rotate 135 degrees, which is not what I want.

Viewing all articles
Browse latest Browse all 133

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>