I want to simulate the suspension of a car... When the car stops I want to make the body of the car to rotate a little bit towards the front. And when it accelerate I want the car to rotate towards the back a little bit.
For the wheels I already have the expression to make them rotate base on the x pos of the car (see code below).
The difference is that the wheels will be parented to a null and the car to the same null so I can rotate the body without moving the wheels.
I hope I'M clear enough. :)
Anyway, my guess is there will be a if/else expression for the rotation of the body but I don't know how to tell when to stop and when to start the rotation.
I understand what you are trying to do. When the car stops, you want a touch of momentum to shift the weight (rotation) of the car forward and then settle... just like when I car stops in real life. The problem is, you don't want the wheels to perform that rotation with the car. You basically want the car to rotate independently.
I am actually trying to do the same thing. If I figure it out, I will post more.