Skip to main content
GameDev.net gamedev.net
🔒 Locked

Car motion help

Started by Andrew1979 Jul 13, 2008 at 7:28 AM 2 replies 850+ views
Original Post
Andrew1979
Andrew1979
Hi All I have recently created a game scene in OpenGL which I've created a basic structure of a van. I now want to move it realistically. I can translate it fine around the scene but not realistically in that I can't make it translate in the direction the object is facing. Any one know of a good tutorial for this sort of thing? What area in maths/physics do I need to read up on? I'm aware it will involve trig but don't know the rest. Any help would be appreciated. Thank you in advance. Andrew
bzroom
bzroom
Start with turning the object into a rigid body using some sort of physics simulation. Then apply forces to the body to make it behave the way you want.

If you use a physics library like ODE or PhysX you can connect wheels to your body, which is very intuitive.

However, constrained bodies are pretty computationaly expensive. Most vehicle simulations make use of a single body and ray casting to simulate the other bodies (the wheels). You could download Havok and take a look at their vehicle kit for some good ideas on how a vehicle should be setup.
Andrew1979
Andrew1979
Have you any idea which are of maths/physics I'd read up on for what I'm trying to do?
K_J_M
K_J_M
My website has a car physics resource download.

Contains, car physics tutorials, physics papers and source code.

Hope you find it useful.

Bottom of this page

http://www.kjmsoftware.co.uk/games.htm


KJM

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.