Scripts / Fixing wobble on 'Z' axis?

Author
Message
GubbyBlips
1
Years of Service
User Offline
Joined: 14th Jan 2019
Location:
Posted: 1st Aug 2020 23:30
Anyone know how to fix the wobble or opposite tilt
when rotating objects on the 'Z' axis?
Example;
An object is rotated 45 degrees on the 'Z' axis.
Then you rotate it around 180 degrees on the 'Y' axis.
Now the object is opposite rotation on 'Z' axis...

How could someone work with the object in that regard?!
Thanks.
PM
AmenMoses
GameGuru Master
4
Years of Service
User Offline
Joined: 20th Feb 2016
Location: Portsmouth, England
Posted: 1st Aug 2020 23:59
That's how Euler angles work, that's why you need to use Quaternions for rotation.

Read up about it on the web there are plenty of sites that will explain it to you in gory detail.
Been there, done that, got all the T-Shirts!
PM

Login to post a reply

Server time is: 2020-08-11 10:59:53
Your offset time is: 2020-08-11 10:59:53