Air Control
Small progress this Sunday evening, I implemented a prototype for controlling the car mid-air.
First the car's rotation:
- roll change is exponentially slowed down
- pitch change slows down similarly but slowly in normal conditions, but friction is increased when braking (allowing the player to seemingly lock the car's pitch)
- yaw change converges towards a target that depends on steering input and velocity
Second I added slip-angle damping while in the air, meaning the car's velocity will naturally align with its facing.
Here is a recording:
It's a start and quite satisfying to look at but, as you can see, it's not tuned appropriately and probably difficult to control. At high speed the car can even rise in the air in an unconvincing way (see recording at 17s).
I will work on improving and tuning this new mechanic in the coming week.
