A custom raycast vehicle implementation emphasizing simplicity and adaptability.
There is now an experimental branch that uses sphere casting instead.
The raycast elements serve as a basis for any type of land vehicle that needs to be suspended by "springs" and propelled using driving force applied against the ground.
This system primarily allows for the simulation of wheeled, tracked and hover vehicles with as many propulsion elements as needed.
Currently, two different sample vehicles are provided:
-
A tank type vehicle with 10 raycasts total (5 per side) with tracked vehicle steering that has neutral turn capability.
-
A 4 wheel drive vehicle with 4 raycasts (1 per wheel) with traditional car steering.
The default scene is the tracked vehicle. You can switch to the other vehicle by pressing escape to unlock the mouse and clicking on the 'Change to 4WD vehicle' button.
The orbit camera used in this project is another example of mine, it can be found here.