Revision: 44261
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 8, 2011 19:15 by necnova
Initial Code
vx += (targetX - sprite.x) * spring; //'spring': elastic coefficient vy += (targetY - sprite.y) * spring; sprite.x += (vx *= friction); //'friction': friction force sprite.y += (vy *= friction); //use it inside an OnEnterFrame event handler
Initial URL
Initial Description
Initial Title
AS3 Elastic Tween Formula
Initial Tags
Initial Language
ActionScript 3