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.

Dark GDK / Space ship momentum(3d)

Author
Message
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 17th Jun 2008 03:45
okay so Im trying to make a physical feeling space shooter. im currently planning on how to have my ship have momentum. The only way i have come up with is to have a 360 element array. each holding the momentum in that direction. then more. however this is a processors worst nightmare i would think. any ideas?

Your signature has been erased by a mod - please reduce it to 600x120
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 17th Jun 2008 04:01
I imagine that a variable for X, Y, and Z momentum would be much more efficient.
waka324
16
Years of Service
User Offline
Joined: 31st Mar 2008
Location:
Posted: 17th Jun 2008 07:46
Just like Mahoney said, use x, y, and z, but instead of specifying momentum, use speed, and alter speed according to what key is pressed, ie. if up key is pressed, x_speed+=2; and then adjust position of the player using x_speed; therefore, if no keys are pressed, speed still stays the same, but it would also take some time for braking and reversing direction. So you get the same effect as momentum.
Vesper103
16
Years of Service
User Offline
Joined: 21st Feb 2008
Location: Beloit WI
Posted: 17th Jun 2008 22:23
but does 3d models use the 3d planse of the world?(ie the xyz of the entire map) or just its own xyz? i hope that makes sense...

Your signature has been erased by a mod - please reduce it to 600x120
Zuka
16
Years of Service
User Offline
Joined: 21st Apr 2008
Location: They locked me in the insane asylum.
Posted: 18th Jun 2008 05:22 Edited at: 18th Jun 2008 05:23
They use the world planes.

You're talking about World and Object space.

If you can do any models for FW, reply to the FleetWars thread.

Click here!
aersixb9
16
Years of Service
User Offline
Joined: 29th Nov 2007
Location:
Posted: 19th Jun 2008 00:56
I'm doing that too! You should join my project: OverSpace...we've already got some physics and collisions implemented!

http://overspace.panddpictures.net
SourceForge: OverSpace
Antigroup
16
Years of Service
User Offline
Joined: 21st Jan 2008
Location:
Posted: 21st Jun 2008 08:53
Mahoney has got the right idea. You could use different speed for each axis. Having simple physics in your game can dramatically affect the feel of the game. But mess it up and it will feel wierd. (Imagine being in a car going like 160mph and hitting the brake and going to 0 instantly. It doesnt make for a fun game.)
But that sounds like a nice thing to put in your game.

Login to post a reply

Server time is: 2024-11-20 13:31:03
Your offset time is: 2024-11-20 13:31:03