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 Discussion / 3d space combat - ship rotation problems

Author
Message
Aramil
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location: Wherever my feet take me
Posted: 15th Jul 2004 07:02
I'm working on a program called Space Havoc 3. I finished #2, but #3 is giving me problems. I'm not sure what's in #2 that makes it work, or even if it does.
What I need is some code that allows an object to slowly rotate towards another, as a starship would face another ship. This needs to work in all three dimensions. After spending some hours on this problem. I have had no success. I'd appreciate any and all help.
Thanks!
Kohaku
21
Years of Service
User Offline
Joined: 3rd May 2004
Location: The not very United Kingdom
Posted: 15th Jul 2004 07:07 Edited at: 15th Jul 2004 07:10
Put an object (for a pivot) in the same position as the ship you want to rotate slowly. Point this pivot object to where you want to go. Then use the curve angle command to make the ship turn to the directin of the pivot at a set speed.

e.g:


object 11 = Pivot
object 13 = Ship
object 21 = Destination

Infra-Dark
Aramil
21
Years of Service
User Offline
Joined: 27th Oct 2003
Location: Wherever my feet take me
Posted: 16th Jul 2004 00:13
Thanks! That seems so simple, I wonder how I could have missed it.

Login to post a reply

Server time is: 2025-05-24 22:11:40
Your offset time is: 2025-05-24 22:11:40