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. For $5 a month, you get access to all of the tutorial project files we've made available as well as other monthly projects, rigs, R&D, elements, early product previews, and BTS content not available anywhere else!

Check out our Patreon Today