Tutorial 100: Rollin' Rig

Joe Clay | Dec 8, 2017

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 useful 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 are below. But if you want the ultimate in rolling, be sure to go grab Roll it! 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]);

Delay Expression (adjust to fit your values)

a = thisComp.layer("Body Axis").transform.rotation.valueAtTime(time-1);
if(a<-180) { a += 360; }

Become a Patron

If you'd like to help support Workbench, check out our Patreon page. Thank you for even considering clicking this link to support what we're doing. We appreciate it. Patrons get all sorts of benefits, from R&D files, setups, and elements to early product releases.

Check out our Patreon Today