- Implemented in Python
- VR Support (using Harfang 3D OpenVR Support)
- Raycast Car (using Bullet Physics)
- Built on Harfang 3D
- W.I.P
This prototype demonstrates the usage of Raycast Car Mechanics (suspension, braking, accelerating, collisions etc...) using the HARFANG API in Python.
To run the prototype:
- Download or clone this repository to your computer (eg. in
C:/car-simulator
). - Make sure Python 3.2 or higher is installed on your computer with the Harfang 3D wheel Harfang PyPi Project
- Download assetc for your platform from here to compile the resources.
- Extract assetc to the correct folder (eg.
c:/car-simulator/app/bin/harfang/assetc
), the path should already be here, all you have to do is extract the assetc files into this folder. - Run 1-build_assets.bat.
- Run 2-run.bat or 3-run_vr.bat.
- Implement a basic Raycast Car
- Add a VR version
- Make the car controlable with a steering wheel and pedals
- Regroup the VR and normal version inside the same file
- Implement a road
- Test mesh collisions for turning roads
- Add a GUI
- Add a speed'o'meter
- Add a car and physics debug feature
- Create a tool to convert .nms tracks to JSON
- Other cars moving around
- Add a SkyBox
- Fix physics imprecision problems
- Fix render triangles imprecision problems
- Real road with a side environment