Is there any way to change an object that is moving forward change its rotation and continue to move in the direction it is facing in, as if it was moved according to local coordinates? like a vehicle turning. basically, i want the results of a follow path constraint with follow curve enabled but without the path. there should be a rotation value that can be changed in real time. is there any way to achieve this? maybe with animation nodes?


1 Answer 1


Here is one way to do it:

Select your car object and add a Follow Path constraint. Select a curve as the target. This curve will be the route the car will take.

In the same place as the car object, add an Empty. Put an Follow Path constraint on the empty. Select a curve as the target.

Select the car add a Damped Track constraint. Select the Empty as the target. (remember to select the right axis orientation depending on the situation; you might want to change it later.)

Select the Empty. Right click on the Offset value field of the Follow Path constraint and choose Add Driver.

Go to the Drivers window and select the Offset (Follow Path) in the list. Press N and click the Drivers tab. For the Type choose Scripted Expression. As Expression Type "var - 1" (or "var + 1" depending on the direction of the curve). Also "1" can be smaller or bigger; the value is dependent on the size of your car object. For the Input Variable choose Single Property. Choose the car object as the target or Prop.

Select the Car and right click on the Offset value field of the Follow Path constraint (of the car) and choose Copy Data Path.

Go back to the Input Variable of the driver and hover the mouse over field net to Path. Use Ctrl + v to paste the copied data path.

Select the car and change the Offset value of the Follow Path constraint. Now the empty will move ahead of the car because of the driver. And he distance it moves before the care follows is 1. The Damped Track will cause the car object to rotate.

enter image description here


I seem to have misread that you don't want to use a path. Sill i suspect you can achieve what you want with drivers. I'll try to look into it when i have more time.

  • $\begingroup$ thanks for the tip. i do however want to avoid using follow path if possible $\endgroup$
    – Walter
    Jul 1, 2020 at 19:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .