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 / Race Game

Author
Message
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 21st Mar 2004 20:05
I am trying to make a racing game.
I've got the track.
I've got the car.
I've got the game.
One problem.
The car doesn't always have all four wheels on the floor.
How do I make it so that all four wheels always touch the floor?
(In case it is needed the wheels are limbs 1-4, the chassis is limb 5 and the driver is limb 6)

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 22nd Mar 2004 15:04
you gotta use the get ground hieghtt command, or was it matrix hieght.. hmm.. well something like that



fandangle around with it to figure out how to make it tilt up and down for hills.



That's the basic idea, Dont use that Crap, i just threw it together.

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 22nd Mar 2004 15:24
Yeah I knew that first part but i'll give the second part a try.

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 23rd Mar 2004 12:46
What! That does nothing!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 23rd Mar 2004 16:20 Edited at: 23rd Mar 2004 16:21
Let me refrase my question.
The car stays flat like this:

So when it comes to a ramp this happens:

The car goes up thwe ramp but stays at the same angle.
How do I solve this.
P.S. It is a 3D game.

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 23rd Mar 2004 16:58 Edited at: 23rd Mar 2004 16:58
um.. The code i posted b4 was just the theory, in fact, if you copy and paste that crap, it probably will run errors.

That's just the theory behind it, you have to think, make up something, and run trial and error until it works.


TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 23rd Mar 2004 17:08
O.K. but what do you mean by etc.?

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 23rd Mar 2004 17:09
Oh!
And why are you dividing object position x and z by 2?
And why use matrix height instead of ground height?

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 23rd Mar 2004 18:53 Edited at: 23rd Mar 2004 18:55
1.)I dont know which one you use (ground/matrix).
2.)
x is the x value .
b is the x value- x/2.
a is the x value+ x/2.

get it? it's how you read data from each end of the car.

3.)etc. is all the crap you need to figure out

BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 24th Mar 2004 15:31
I ment object size x, /2

TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 24th Mar 2004 16:10
Oh!
That makes more sense!
Sorry for my ignorance!

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]
BadMonkey91
21
Years of Service
User Offline
Joined: 13th Jan 2004
Location:
Posted: 24th Mar 2004 18:11
i messed around last night with the same consept. I didnt have much time, and i couldnt figure it out. It's interesting, Post it if you figure it out!

bibz1st
22
Years of Service
User Offline
Joined: 2nd Jan 2003
Location:
Posted: 26th Mar 2004 18:51
use the code for tilting from the tank demo
TEH_CODERER
21
Years of Service
User Offline
Joined: 12th Nov 2003
Location: Right behind you!
Posted: 27th Mar 2004 21:54
Thanks!
I just noticed something similar from the jetski demo.

Current Projects: 'Level Editor 3D' and 'Animation Package v2.0'
[email protected]

Login to post a reply

Server time is: 2025-05-23 03:46:53
Your offset time is: 2025-05-23 03:46:53