PDA

Click to See Complete Forum and Search --> : Phisics


Motoxpro
Oct 16th, 2001, 06:03 PM
anyone know where i can learn t do this...thx
(i know i spelled it wrong..sorry)

filburt1
Oct 16th, 2001, 06:31 PM
Physics (http://www.google.com/search?sourceid=navclient&q=physics). :)

Game physics vary wildly depending on the environment (FPS, flight sim, space sim, etc.). What environment specifically?

DaoK
Oct 16th, 2001, 06:43 PM
Fox webpage have something about Gravity and stuff like that but I do not remember the link :(

DaoK
Oct 16th, 2001, 06:44 PM
Here is the link : http://fox.acky.net/

Motoxpro
Oct 16th, 2001, 07:30 PM
thx DaoK
and filburt, im making a Motocross Game and i have to make the motorcycle come of the ground when it hits the jumps and go up the hills right and stuff like that

filburt1
Oct 16th, 2001, 09:20 PM
Have you taken Calculus yet?

DaoK
Oct 17th, 2001, 05:38 AM
Yes I used some code for my game, the gravity one is nice :)

Motoxpro
Oct 17th, 2001, 08:09 PM
Originally posted by filburt1
Have you taken Calculus yet?
im in middle school

Jotaf98
Oct 20th, 2001, 06:44 PM
Here's some Pseudo-Code. Remember that ALL VARIABLES SHOULD BE DOUBLES AND NOT INTEGERS OR LONGS OR WHATEVER!!! :)

Gravity = 0.1 'Or some other small number, you might have to experiment with this
TerminalVelocity = 0.5 'Experiment with this too, it's the amximum falling speed

'The following code is supposed to be ran EVERY FRAME

1) If SpeedZ > TerminalVelocity And Player is not touching the gground Then SpeedZ = SpeedZ - Gravity
2) PlayerZ (the player's height) = PlayerZ + SpeedZ
3) If the player touches the ground, then
3a) SpeedZ = 0.5*SpeedZ
3b) If SpeedZ < 0.1 Then SpeedZ = 0

That should do it :)
(I might have forgotten some important stuff so tell me if it doesn't work)

kedaman
Oct 20th, 2001, 06:53 PM
that's pseudoballistics jotaf (something you have in old super mario bros games), for real ballistics the friction is proportional to the velocity

Jotaf98
Oct 20th, 2001, 07:19 PM
We don't need friction, it's a motorcycles game and not a science project :rolleyes: :D

kedaman
Oct 21st, 2001, 06:31 AM
Originally posted by Jotaf98
We don't need friction, it's a motorcycles game and not a science project :rolleyes: :D
without friction there would be no terminal velocity :rolleyes:
I'm studying computer science and physics is a very vital part.
I have a motorcross game called action cross somewhere which includes nonelastic collision with 2d spring dynamics and rotation momentum. If you don't want physics, try archanoid ;)

DaoK
Oct 21st, 2001, 10:37 AM
Gravity = 0.1


should be 9.8

Gaming_World
Oct 21st, 2001, 01:09 PM
9.8 would be for m/sec
0.1 would be 5/48m/sec

for light-years/sec, it would be one very small number.



What I am attempting to point out is that it matters what system you are using.

PsychoMark
Oct 22nd, 2001, 02:35 AM
kedaman, you have action cross? :eek:


Isn't that the DOS game where you drive a very flat looking motorcycle and you have to get the apples or something? :)

If it isn't, ignore this post, if it is, can you send it to me? Been looking for it for three years (lost the disk :()

kedaman
Oct 22nd, 2001, 04:35 AM
Yep! I have two versions of it, while the later contains an level editor :D I used to make levels where the motorcycle would fall and do all kinds of loops and tricks without you touching any key at all, hehe that was fun. I'll see if i can find it.

PsychoMark
Oct 22nd, 2001, 04:39 AM
Cool, I only had about 8 levels and no editor at all.... if you find it can you send it to psprogramming@multimania.com ? :)

....sorry for the interruption, you may now continue rambling about stuff I don't understand :)

kedaman
Oct 22nd, 2001, 05:31 AM
I found the earlier version (1.1) with no level editor and 24 levels, I'll search for the other one if you want.

PsychoMark
Oct 22nd, 2001, 05:32 AM
If it's not a problem for you....

Just send all you can find :)

kedaman
Oct 22nd, 2001, 06:30 AM
It's 3.4M rared, should i send it in parts?

PsychoMark
Oct 22nd, 2001, 06:32 AM
I've got an average of 400 kb/sec download, I don't mind the 3.4 MB :)

kedaman
Oct 22nd, 2001, 06:36 AM
ok just asked in case you wouldn't have space in your mailbox
(sent)

Jotaf98
Oct 22nd, 2001, 10:19 AM
DaoK: I know that, but we're talking about pixels here and not meters :) It will depend a lot on the speed of the game and the size of the motorcycle.