CurryKitten / CurryKitten-Sim

FPV quad simulator
70 stars 7 forks source link

Sort out plane bumpiness on the ground and allow better ground handling #67

Open CurryKitten opened 4 years ago

CurryKitten commented 4 years ago

The plane suffered in wheel collider hell. Wheel colliders are something from the PhysX engine that seems woefully complicated to get right. They only seem to work properly when having a lot of mass put on top of them. I had the same issue when developing the cars, but I was able to load up the mass of the cars quite substantially without affecting performance... but as the plane needs to float happily around the sky, we can't make it too heavy.

In the release, the wheel colliders were abandoned in favour of simple sphere colliders that essentially dragged along the ground.

Screenshot 2020-07-28 at 22 19 55

While this worked ok, there is a moment of "jigginess" where the plane bounces around a bit before it gets going. Obviously, it would be nice to be able to manoeuvre the plane at low speeds and use suspension if needed. More investigation and experimenting needs to be done to figure out how to get a 1kg 3-wheeled vehicle to react correctly with wheel colliders.