-
Member
Help please (Rotation problem)
So i have recently been working on a little (actually its pretty damn big) Easter egg for my latest track and i ran into a little problem that i am unsure how to fix. Basically i have a mine cart running along some tracks but when it hits a certain point (18) it randomly does a full 360 degree spin. I have tried rotating the nodes but to no avail. i would really appreciate it if anyone could point me in the direction of fix for my problem. This Easter egg is starting to become more bother than its worth (jk i love it) 
Please refer to the video below for a demonstration.
Thanks 
-
Trials Developer
Common problem with interpolating rotations, it doesn't know which way to turn if the rotation goes over 360 degrees and just "rewinds" back to 0 from 360. There's no simple way to fix it without diving deep into linear algebra and quaternions. One way is to provide the rotation values that go over 360/changes in the rotation manually for each keyframe.
-
Senior Member
Once the rotation reaches 359 or 0, disable any Interpolation, set the rotation to the other end, then re-enable Interpolation. You can also rotate past 360 or 0 into the negatives.
-
Member
Ok so i decided to switch to a local rotation system. Created a 2D vector with a table for the rotation between 2 points at a time and its working perfectly. Problem solved, thanks for the replies guys! <3