3D Theory - Example - Car Racing Game - Suspension

In order to model the way that the car responds to bumps in the road, as well as acceleration and cornering, we need to have some sort of model of the suspension of the car.

car springs

We need to decide how accurately to model the suspension of the car. Do we need to model every detail? How much air in the tyres?

One possibility is to represent the car as a spring-mass-damper model. This needs to be done in 3 dimensions so that we can represent rotation as well as linear up and down movement.

spring mass damper

For theory see spring-mass-damper model.


metadata block
see also:
Correspondence about this page

Book Shop - Further reading.

Where I can, I have put links to Amazon for books that are relevant to the subject, click on the appropriate country flag to get more details of the book or to buy it from them.

cover Game Programming for Teens.

other games programming books

Commercial Software Shop

Where I can, I have put links to Amazon for commercial software, not directly related to this site, but related to the subject being discussed, click on the appropriate country flag to get more details of the software or to buy it from them.

cover Dark Basic Professional Edition - It is better to get this professional edition

cover This is a version of basic designed for building games, for example to rotate a cube you might do the following:
make object cube 1,100
for x=1 to 360
rotate object 1,x,x,0
next x

cover Game Programming with Darkbasic - book for above software

other commercial software

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2015 Martin John Baker - All rights reserved - privacy policy.