How do I make cars flip upright like in jailbreak?

Hi,

I’m trying to make a raycast suspension system, I’ve finished it and it works really well (for anyone wondering I literally just slightly modified this toutorial). However, now that it’s done, I’ve run into an issue:

Sometimes when you’re driving up a steep surface or steer too far, your car ends up flipping. This is to be expected and I don’t have a problem with it.

My real problem is with getting out of that flipped position. I want to create a “Flip car” button, which acts like the one in jailbreak - probably try and play it to see what I mean, as it is quite distinct, but basically it adds just enough velocity to each of the 4 corners of the chassis in order to flip it upright.

I don’t even really know where to start with this (I’m struggling with the maths specifically), so any ideas would be appreciated!

My car

Again, many thanks to anyone reading this, any help would be appreciated!

you could try to use an alignoreitnation

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.