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.

3 Dimensional Chat / Plane Rotation

Author
Message
True Eternity
23
Years of Service
User Offline
Joined: 8th Feb 2003
Location:
Posted: 13th Oct 2003 02:50
I'm making a airplane game and i can't get the plane to rotate 0,0 automatically. Can you help?

My Code:

If leftkey()=1 then Roll object left 1,2
If Rightkey()=1 then Roll Object Right 1,2
Algae Man
23
Years of Service
User Offline
Joined: 11th Nov 2002
Location: Canada
Posted: 14th Oct 2003 01:19
What do you mean, "rotate 0,0 automatically"? Is your plane model rotated 90 degrees when you load it or something?
zircher
23
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Oklahoma
Posted: 15th Oct 2003 05:02 Edited at: 15th Oct 2003 05:03
If you want the plane to automatically level itself out after a roll, you need to keep track of how much you have rolled and have it slowly return. Additionally, you'll need some logic to determine if you have rolled more than 180 degrees, in which case it needs to roll in the other direction until level again.

If your situation is that the model itself is not on the right axis, after loading the model rotate it to the correct position and use the fix object pivot command to correct the bad orientation. This is a common problem with some 3D editors.
--
TAZ

Login to post a reply

Server time is: 2026-07-04 21:38:14
Your offset time is: 2026-07-04 21:38:14