Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
2D Elastic Motion Compare & Contrast  


Download .fla


Elastic Motion No Dampening

dist =(targetX - ball_mc._x);
vx = vx + dist*k;
ball_mc._x += vx;

Elastic Motion & Friction

dist =(targetX - ball_mc._x);
vx = vx*f + dist*k;
ball_mc._x += vx;

Elastic Motion & Inertia

dist =(targetX - ball_mc._x);
vx = vx + dist*k*(1/I);
ball_mc._x += vx;

Elastic Motion & Friction & Inertia

dist =(targetX - ball_mc._x);
vx = vx*f + dist*k*(1/I);
ball_mc._x += vx;


© 2008 Quantunet LLC All Rights Reserved | Intellectual Property | Terms of Use | Privacy
Home | About Quantunet | FAQ's | Contact Us