Hello.
A simple example of this would be "If the car is between X angles for 3 seconds, restart layout"
If the car is only upside down for 2 seconds and manages to get back on it's wheels, do not restart layout.
I feel like there is probably a very simple way to do this...
Thanks.