Newton Racecar Demo
During the second year, we were instructed to deliver a 3D game which made use of the Direct3D API. Since I already had the Shard Engine in an early form I decided to spend the assignment interfacing the Newton Physics SDK to the existing parts of the engine.
For this project, I implemented a landscape class which processes a passed .x mesh file or image heightmap, passes it to the Newton API to generate a collision environment, and serializes it to disk to avoid the processing time the next time the program is run. I created a wrapper for Newton's vehicle joint, which allows the user to specify the vehicle's properties via a compiled XML file and simulates a gearbox with semi-realistic torque curves. Finally, I added functionality for any physics object to reference a material by name from another XML file which contains material-to-material interaction data.
Click here to download the car game. If you encounter errors, please read this page. Source is available here.




