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 / Rally Car Physics

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 8th Jun 2004 22:12
(DBC)
I am trying to make a rally game with exaggerated physics like in trackmania.
So far I have a track editor(matrix), the cars and basic control(forwards and backwards with acceleration, turning and tilting the car to the matrix).
To get the car to roll and jump off ramps would I have to change to objects or are matrices alright?
Either way please can you help me with the rolling and jumping.
Thanks in advance.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]
Turoid
21
Years of Service
User Offline
Joined: 1st Nov 2003
Location: The Netherlands
Posted: 9th Jun 2004 23:44
I'm not so good in psyhics. But don't use matrices as ramps, use objects for that. And for the rolling of your car, you should make a kind of variable that increses when you steer and if the car is on a specified speed, then zrotate the car object with that variable, like this:


I don't know if this code works but i'll think that it will work,
cheers,

jopie

if I = 1 then I = 1 else I = 0

Current project>> "MagEasy" simple 2D game creator..
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 10th Jun 2004 12:32
Thanks.
One problem though.
I have already got the car tilting to stay flat on the matrix.
That means that I am already using the zrotate command every loop.
How would I make the roll happen aswell?
When I get home I will upload my code.

Current Projects: Dark_Worlds_Map_Editor version0.1 [email protected]
[img]http://www.uploadimages.net/images/331935avatar2.JPG[img]

Login to post a reply

Server time is: 2025-05-25 04:23:42
Your offset time is: 2025-05-25 04:23:42