Car anti-overturn system

Hi

Well as the title says i am planning an anti-overturn system for cars in my game just like mario kart does.

So well i would like help on how to implement the system.
The things proposed:

  1. Create a PART that follows the car.
  2. Raycast down the car to get the normal of the surface that the car is above.
  3. Get the normal and according to that normal, rotate the PART according to surface above
  4. Use align orientation to get the car rotated smoothly.

Extra: I also want to delete the inerthia from the car so it just dont go down when its in on a stemp ramp or similar

Any help is apreciated :slight_smile: