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.

Newcomers DBPro Corner / Need help resetting my plane's angles

Author
Message
Evil Booger
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 20th May 2006 01:19 Edited at: 20th May 2006 01:23
I'm trying to make my ship level itself by resetting its angles when I press spacebar.

I tried to get the ship's angles and rotate it the opposite way but that didn't work.
Please help.


And if someone could tell me how to make it re-level slowly that would help to.
Thx in advanced.

boogers will take over the world
Zotoaster
19
Years of Service
User Offline
Joined: 20th Dec 2004
Location: Scotland
Posted: 20th May 2006 01:44
if spacekey()=1 then rotate object 1,0,0,0

Evil Booger
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 20th May 2006 02:11
oh...i didn't think of that...

but how do i make it slow so the ship won't just suddenly appear level.

boogers will take over the world
RUCCUS
19
Years of Service
User Offline
Joined: 11th Dec 2004
Location: Canada
Posted: 20th May 2006 02:13
Look up the curvevalue and curveangle commands in the index, should do what you need.

Evil Booger
19
Years of Service
User Offline
Joined: 23rd Nov 2005
Location: My evil lair
Posted: 21st May 2006 00:39
Tanks Ruccus but now the speed it rotates relies on how much rotating you do in between resets.



boogers will take over the world

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-27 19:43:27
Your offset time is: 2024-11-27 19:43:27