I want Car 2 to follow Car 1 in a certain distance. Using this expression
Car2.translateX = `getAttr -time (frame - 5) Car1.translateX`;
is doing well as long as Car 1 is running. If it stops Car 2 will crash into his rear of course.
What I want is that Car 2 stays allways in this certain distance to Car 1, even if Car 1 turns left or right or stops. In other words and to make it more geneal: Car 2 shall reproduce the transformations of Car 2 with a time offset, but keep the distance if Car 1 stops (and goes on after a few frames of resting).
There is a work around using a motion path (and expressions), but I need a solution without this, because I've got a lot of cars, and I want the whole thing get running via MEL.
Could anybody tell me how?
Thanks in advance