Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Difference between rotation XYZ and ZYX

Author
Message
Bulleyes
22
Years of Service
User Offline
Joined: 3rd Nov 2002
Location: Cyberjaya, Malaysia
Posted: 19th Jul 2003 17:31
Hi,

Hmm... this might sounds like a trivial question. Can anybody tell me the difference between this two rotating order, i.e. rotating X, Y, and then Z axis, comparing to Z, Y, and then X axis?

And why does camera default ZYX rotation, whereas object rotation default is XYZ?

Thanks!
Bad Nose Entertainment - Where games are forged from the flames of talent and passion.

http://www.badnose.com/
keeblerElf
21
Years of Service
User Offline
Joined: 11th Jun 2003
Location: United States
Posted: 19th Jul 2003 22:25
Think about it for a sec. If you rotate around the x and then rotate around the z axis your care would be at a different position than if you did it in reverse order because your car would roll then tilt instead of tilting then rolling confusing

Xander
22
Years of Service
User Offline
Joined: 3rd Mar 2003
Location: In college...yeah!
Posted: 20th Jul 2003 08:39
When you set object rotation to zyx, then you can use the point object command. If it is xyz, then it won't work right. The camera is defaulted to zyx because it is often pointed, more often than objects.

Xander
Bolt of Bolt Software Productions
wargamer
22
Years of Service
User Offline
Joined: 7th Jan 2003
Location: United Kingdom
Posted: 23rd Jul 2003 11:46
..but I think you'll find that there remains a bug in this area (up to Update 4.1 anyway). Objects are supposed to default to xyz, but actually default to (and are not changeable from) zyx. (Or it might be the other way round!)

Rumour has it - wait for U5 for a fix.

And if you are using the object rotation z () type commands, to measure rotation angles - the "z" one doesn't work either!

AMD Athlon 1600+, 512MB, GeForce 3

Login to post a reply

Server time is: 2025-06-01 09:55:52
Your offset time is: 2025-06-01 09:55:52