Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Expressions Rolling ball radians vs degrees

  • Rolling ball radians vs degrees

    Posted by Steve Bentley on March 28, 2018 at 7:15 pm

    If I’m rolling a ball across the screen I can use distanceTravelled = 2*pie*radius*transform.rotation/360.
    Why don’t I have to convert the rotationAngle to degrees before I do the math? Since i’m using 360 (in degrees) I thought I would have had to: AE normally hands out the radian value when you ask about angle, no?

    Steve Bentley replied 8 years, 4 months ago 2 Members · 2 Replies
  • 2 Replies
  • Dan Ebberts

    March 28, 2018 at 7:28 pm

    AE does rotation in degrees so your rotation angle is already in degrees. You’re actually doing the conversion in your formula by multiplying the fraction of one complete rotation in degrees (rotation/360) by 2*pi radians (which is also one complete rotation.

    Dan

  • Steve Bentley

    March 28, 2018 at 7:32 pm

    So i’m confusing expressions with expresso (C4D). It must be time for bed – I was thinking that AE always returned a radian value.
    Thanks Dan

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