XaiJu
Workbench
Workbench

patreon


Tutorial 100: Rollin' Rig

We've hit 100—100 tutorials and 10K subscribers! What a way to end the year! But before that, Santa's got to come to town. He's upgraded his ride a little bit.

This week's tutorial looks at a nice way to set up a rolling car rig, but we also look into calculating the angles between wheels so we can add some additional movement to the car's suspension. Relevant expressions on our site linked above. But if you want the ultimate in rolling, be sure to go grab Roll it! (link above) from Tomas Sinkunas (aka renderTom) from aescripts!


Angle Calculation Expression (be sure to change the layer name for p2)

``p1 = transform.position;

p2 = thisComp.layer("Layer Name").transform.position;

angle = Math.atan2(p1[1] - p2[1], p1[0] - p2[0]);

radiansToDegrees(angle);


Delay Expression (adjust to fit your values)

```a = thisComp.layer("Body Axis").transform.rotation.valueAtTime(time-1);

if(a<-180) { a += 360; }

ease(a,-2,2,-5,5);

Tutorial 100: Rollin' Rig

More Creators