-
Wheel Rotation On/Off Controller
Hi. I am creating a “2D Car Rig” to easily animate different part of the car.
Having trouble with the Wheels rotation. I have the wheels rotating when the Car is Moving on the x axis. I want that the rotation stops when a checkbox is enabled.
It works but the wheels are going to rotation value 0, when the checkbox is enabled.
My question is that how can I define the last position and stay to it while the chekcbox is enabled and continue on from that point when the checkbox is disabled ?
Thanks!
Jaan Koppe
if (comp("Main").layer("CarControl").effect("Break On")("Checkbox") == 0)
comp("Main").layer("Truck").transform.position[0]
else
0