Have a look at this approach, it’s based on the advanced vehicle template:
- we check if all wheels are in the air
- if they are, we check how fast the car is spinning
- if it’s spinning fast enough, we switch the spring arm’s rotation from
Relative
(default) toAbsolute
- in absolute, the rotation is not affected by the parent’s rotation
- when springarm rotation is absolute, the rotation follows velocity
- when springarm rotation is relative (car is on the ground), it follows the parent
- and you get to set the angle
You will, most likely, need to check another state - when the car is flipped on the roof. The template tracks that variable already and it’s called LowFriction - it’s used to modify physical material properties but can also be used to control camera behaviour.