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 / STARFOX 64 styl flight. HELP ME!!!

Author
Message
MASTER OF PUPPETS
22
Years of Service
User Offline
Joined: 9th Jun 2004
Location: Trapped Under Ice
Posted: 25th Dec 2005 04:29
What i am trying to do is add really nice aerodynamic motion to my 3d spaceship model. I am making a game similar to Starfox 64 and i cant do anything right.

What i am asking is whether or not somebody could please help me by maybe making a rectangle or cube act as though it were a spaceship that could rotate on the z axis upto 45 degrees either way, rotate on the y axis no more than 90 degrees left or right, and can rotate on the x axis to make the nose of the spaceship go up or down 45 degrees and have the ship go straight ahead toward whichever way it is pointing. I would also like the camera to follow the spaceship from behind (3rd person stle) and have the ship actually move around the screen still.The camera only needs to point straight ahead at its default position and rotation.

I know this is a whole lot to ask but I want the physics to look as realistic as they could be made.

If you are wondering i am using DBC v.1.something... Thank you very much.

metal is not music but a way of life...all hail to the reigning king METALLICA!!!
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 25th Dec 2005 13:47
I once started on a shoot them up game. I did it this way:

With the mouse, you can increase/decrease the x/y speed of the object. Traction is constantly applied( x/yspeed# = x/yspeed#*traction# with traction# < 1.0).

The angle however, is not dependant of the mouse, but of the xspeed and yspeed. the xspeed controls the roll of the spaceship, and yspeed the pitch of the object. Yaw didn't even play a role in this. And it was a pretty decent effect.

You should try it.
MASTER OF PUPPETS
22
Years of Service
User Offline
Joined: 9th Jun 2004
Location: Trapped Under Ice
Posted: 25th Dec 2005 21:21
hey sven,
would you mind writing out a small program because i am really bad at understanding ANYTHING. If you wouldnt mind i would appreciate it.

metal is not music but a way of life...all hail to the reigning king METALLICA!!!
Sven B
21
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 25th Dec 2005 21:34
I can give you the code I had:


*originally written in DBP

I hope this clears some things.

Login to post a reply

Server time is: 2026-07-07 19:09:15
Your offset time is: 2026-07-07 19:09:15