WIP: Advanced Vehicles
Please understand that this is a work in progress and is updated as my time allows. I made this for fun. It is released as open-source for those that wish to develop a car game and would like to see some kind of demonstration of how to go about developing a car in jMonkeyEngine. Contributions are welcome!
A (slightly old now) video of the game in action.
An advanced implementation of vehicles for jMonkeyEngine.
This is a work in progress of creating individual parts for a vehicle. Currently implemented (but may not be fully implemented) are:
- Automatic GearBox
- Tachometer (rev counter)
- Skid marks
- Tyre Smoke
- Engine Audio
- Vehicle Editor
The tyres use the pacejka formula. Currently only latitudinal forces are applied, but longitudinal code is there. There are probably a few more things I can’t remember.
There are 3 cars to play with (see main class) and a test playground.
Uncomment whichever vehicle you want to play with (in the main class).
- WASD : forward, left, brake, right
- T : Start Vehicle
- R : Reset Vehicle
- H : Horn
- E : Reverse
- F5 : Change View
The project also contains a Pacejka Viewer/Editor so you can create tyre models yourself. This is particularly handy if you want more of an arcade or simulation feel.
Play The Game
Download Link: https://mega.nz/#!rFJwwIYT!NourF1m-AAl4tKGzCxKIeTF1CPqmq5Y8id44V3mTZ-4
Download the game.
- Windows: double-click the start.bat file
- *nix: Run the start.sh file.
Both do the same thing. They just execute
java -jar jme-vehicles-1.0.jar.