Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Help. How to make a wheel on a car roll att right speed ?

  • Help. How to make a wheel on a car roll att right speed ?

    Posted by Toeas72 on August 31, 2005 at 2:03 pm

    Hi

    I need help to get a par of wheels roll in the right speed when the car is driving across the screen.
    The car is made in photoshop and the wheel is on seperat layers, but is

    Fred Matthews replied 21 years ago 3 Members · 3 Replies
  • 3 Replies
  • Dan Ebberts

    August 31, 2005 at 7:59 pm

    I’m assuming the name of your car layer is “car”, and that you’ve made it the parent of the wheel layers, and the wheel diameter is the same as the wheel’s layer width. Then you just need something like this for the wheel’s rotation:

    car = thisComp.layer(“car”);
    diam = width;
    dist = length(car.position,car.position.valueAtTime(0));
    value + dist*360/diam*Math.PI;

    So all the wheels don’t look the same, you can set their initial rotation to different values.

    Dan

  • Dan Ebberts

    August 31, 2005 at 8:08 pm

    Oh yeah, one more thing – you have to keyframe the movement of the car before the wheels will turn.

    Dan

  • Fred Matthews

    August 31, 2005 at 9:34 pm

    This exact project is done in the Total Training for Adobe After Effects 6.5 training video series. If you do not have it I highly recommend getting the set. I pull from it for various projects as needed rather than watch the shole thing through. It is about 60 hours of incredible instruction from the basics and the screen layout to the difficult and plug-ins.

    Totally worth the money.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy