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.

Author
Message
Ankillito
18
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 14th Dec 2006 00:17
I'm working on a 3D space battle type game. When I want one ship to point towards the other, I use the point command. However, it doesn't seem to work to well once the ships move on the y axis. Is this my program? Or should I be doing something else?



"There will always be evil, for, without evil, the good shall lose their virtue."
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Dec 2006 00:23
Apparantly there is something called gimbal lock which is probably what your describing.
Im no authoritive expert on the subject.

WOLF has created a plugin that might help you as well.
Its called EZROTATE, perhaps that plugin is what you will require.

If you want to do it on your own, create a 3 hidden 3d objects and apply the rotations to these handles and this should allow you to solve some issues.

Some reference material links
http://en.wikipedia.org/wiki/Gimbal_lock

http://www.anticz.com/eularqua.htm

http://www.gamedev.net/reference/articles/article1095.asp

Lucifer
19
Years of Service
User Offline
Joined: 26th Dec 2005
Location:
Posted: 14th Dec 2006 00:42
Quote: "Its called EZROTATE, perhaps that plugin is what you will require."


isnt ezrotate only for dbpro?


i like furry jesus and sódóma just more than anything else..
indi
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 14th Dec 2006 00:48
that im not sure of. perhaps so.

RUCCUS
20
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 14th Dec 2006 04:43
Ive found that using the pitch/roll/tilt commands screw up the rotate/point commands. Try switching the pitch/roll/tilt commands to rotate commands if possible, and it might work.

Krilik
19
Years of Service
User Offline
Joined: 16th Mar 2006
Location: Arizona, USA
Posted: 14th Dec 2006 06:22 Edited at: 14th Dec 2006 06:50
The way Ruccus suggested should work. I'll mess around with it to see if I can get it to work properly.
Ankillito
18
Years of Service
User Offline
Joined: 10th Dec 2006
Location: Litigious California
Posted: 14th Dec 2006 07:11
I found out the problem - I needed to change the roation order.

Works ok now. I don't know though - there might be a better way to do it.

"There will always be evil, for, without evil, the good shall lose their virtue."

Login to post a reply

Server time is: 2025-05-27 19:38:45
Your offset time is: 2025-05-27 19:38:45