Quantunet.com

My Account

Joins Us
Flash 8 Actionscript 2.0 Knowledgebase
1D Elastic Motion + Friction Based Dampening  


Download .fla


1D Elastic Motion With Frictional Dampening

onEnterFrame = function() {
disty = targetY - ball_mc._y
vy =vy*damp + disty*k ;
ball_mc._y += vy;

1D Elastic Motion With Frictional Dampening & Gravity

onEnterFrame = function() {
disty = targetY - ball_mc._y
vy =vy*damp + disty*k + g;
ball_mc._y += vy;


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