Havok Xtra Dev Home > Demos > Ray Cast Car

Raycast CarView this Demo Online 198kb

Download this Demo 564kb

This sample highlights the use of the physics engine to create some basic car dynamics behavior. The driving model is taken directly from the simple drive controller developed for the car tutorial. We've added in a landscape with some rocks to interact with and added suspension for each of the wheels. In this example we are not explicitly modeling the contact between the ground and the wheels but instead the car is modeled as a block "floating" a few feet off the ground. The floating behavior is created using custom designed dampers at each corner of the block. The wheels are simply drawn in afterwards as a graphical effect.

Controls:
UP ARROW: accelerate
DOWN ARROW: brake
LEFT ARROW: turn left
RIGHT ARROW: turn right
SPACE: handbrake
"f": flip car if upside down


Demos | Havok Xtra Dev Site | www.havok.com | top