Unity Car Physics (WIP)
Unity Car Physics (WIP)
Project description
In this solo free time project I took it upon myself to create a respectable vehicle behavior system from scratch in Unity. The behavior does not make use of built in wheel colliders and is fully customizable. This project also features a sound system for the car, made using FMOD studio.
Software used:
Unity
Blender
FMOD Studio
Showcase
Engine and transmission
The engine of the vehicle can be of any power and features an adjustable torque curve. The transmission is also customizable with different gear ratio's.
Grip and traction
The engine's power directly corresponds with the tire traction. Too much power and too little grip? Burn-outs!! The grip of the wheels can be adjusted even more precisely with animation curves.
The grip also increases with the weight that is being put on them.
Suspension
The suspension of the car is raycast based. This setup is good for an arcade game but I am exploring other options.
It also has a serious effect on handling. For example if the suspension is too soft the vehicle can become unstable at higher speeds.
Audio
The audio is made using FMOD studio. The rpm, grip and speed values are parameters that change in FMOD studio, creating smooth driving sounds that can be adjusted very easily.