ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Rolling ball radians vs degrees

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Steve Bentley
Rolling ball radians vs degrees
on Mar 28, 2018 at 7:15:24 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?



Return to posts index

Dan Ebberts
Re: Rolling ball radians vs degrees
on Mar 28, 2018 at 7:28:59 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



Return to posts index

Steve Bentley
Re: Rolling ball radians vs degrees
on Mar 28, 2018 at 7:32:23 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



Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 CreativeCOW.net All Rights Reserved
[TOP]