GoKit icon indicating copy to clipboard operation
GoKit copied to clipboard

Tweening Rotations Shortest Distance

Open alexjhetherington opened this issue 7 years ago • 1 comments

If I want to tween a local euler rotation from 355,0,0 to 5,0,0, GoKit will calculate the distance as -350,0,0. Is there a way to get it to tween a distance of 10,0,0?

alexjhetherington avatar Sep 26 '18 15:09 alexjhetherington

Yes, use quaternions.

  • Michael

On Wed, Sep 26, 2018 at 11:24 AM alexjhetherington [email protected] wrote:

If I want to tween a local euler rotation from 355,0,0 to 5,0,0, GoKit will calculate the distance as -350,0,0. Is there a way to get it to tween a distance of 10,0,0?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/prime31/GoKit/issues/86, or mute the thread https://github.com/notifications/unsubscribe-auth/ASds_0Xhak--BW8s6KU7wofsj4wfuRRcks5ue5w5gaJpZM4W66f7 .

mrcarriere avatar Sep 26 '18 15:09 mrcarriere