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.

Newcomers DBPro Corner / need help with collision on a matrix

Author
Message
olivehehe 03
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location:
Posted: 27th Aug 2005 05:43
First of all, if this is the wrong place to put this thread, i'm sorry, this is my first post.

Anyways, I'm making a top down racing game (think micro machines), and i need some help with doing the collision for my matrix terrain. At the moment I have my beautiful matrix terrain, made with Geoscape3d, and my .x car model, which can be driven around the level. The problem is that my car can drive through the mountains on my track, and as far as i can tell, there's no easy way to do collision, so any help, code snippets etc. would be appreciated.

also, with this being a racing game, it's going to need realistic car physics. At the moment, i've got realistic acceleration, deceleration and braking, but at the moment my tracks are level, and the car just drives a certain height above the ground. Do the physics come with the collision, or is there something else you have to do? Again, any help would be appreciated, but the collision is more important that the physics...for now.
olivehehe 03
19
Years of Service
User Offline
Joined: 26th Aug 2005
Location:
Posted: 27th Aug 2005 09:47
OMFG...just realised the double post, really sorry, please delete this thread and leave the other one as it is.
Ric
20
Years of Service
User Offline
Joined: 11th Jul 2004
Location: object position x
Posted: 28th Aug 2005 18:41
If it's a matrix your using, then the command 'get ground height' is the one you're after. Just reposition the y-value of the car to the ground height at that position every loop. If, on the other hand, geoscape exports matrices in some different format, then you will need another method.

Login to post a reply

Server time is: 2024-09-24 03:21:38
Your offset time is: 2024-09-24 03:21:38