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 / Help with 2D racing game

Author
Message
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 1st Dec 2004 00:14
Hi I am stuck where to start with a 2D or 3D racing game...

View from car not outside but how to I create and store a track and then use collision detection.

I have DB Enhanced (not Pro).

Any pointers woudl be great (2D to start with I guess).

Thanks
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 1st Dec 2004 00:40
OK, you need to look into the following, which you will find on the forums using the search function...

WayPoints - these are used to get the vehicles from one part of the track to the next. When you reach a waypoint, you head for the next, and so forth.

Tracks - These are actually secondary to waypoints. Theoretically, if you create your waypoints correctly, your cars will travel exactly where you want them to. You won't need to worry about veering offtrack, because the waypoints control this.
For 3D, you need to pick your preferred tool - Matrices or 3D models,

Collision - consider Nuclear Glory Collision, combined with ground height commands to stay on track and control vehicle collisions. You may also want to collide with waypoints to detect them.

2D/3D - decide now! 2D will not help you create a 3D racing game later. I went straight for 3D when I started.

Other Tips - Consider a straight line race first between 2 waypoints, on the flat. Then think about corners, and perhaps hills. Once you introduce corners you need to consider vehicle collisions at the same time.

BatVink
http://biglaugh.co.uk/catalog AMD 3000+ Barton, 512Mb Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
Terms & Conditions apply
Newbie5UK
20
Years of Service
User Offline
Joined: 13th Nov 2004
Location:
Posted: 1st Dec 2004 16:31
Thanks, guess I need to do some reading and look at other coding examples... cheers

Login to post a reply

Server time is: 2024-11-27 16:37:50
Your offset time is: 2024-11-27 16:37:50