How can I manipulate an object's rotation to ease in toward a specific rotation?
This is my script so far:
clip.trot = Math.atan2(clip._y-clip.targety,clip._x-clip.targetx)*180/Math.PI-270;
clip._rotation += (clip.trot-clip._rotation)/2;
Printable View
How can I manipulate an object's rotation to ease in toward a specific rotation?
This is my script so far:
clip.trot = Math.atan2(clip._y-clip.targety,clip._x-clip.targetx)*180/Math.PI-270;
clip._rotation += (clip.trot-clip._rotation)/2;
old but the Math is still accurate:
http://www.bit-101.com/tutorials/easing.html
gparis
thanks but i need to know the formula for easing in with rotation.
that in the scripting samples !?
(im new...)
what?
http://www.robertpenner.com/easing/p...7_tweening.pdf
you have them all here.
gparis