guest (198.147.225.46)
Mar 8, 2012
2D Game Physics - Part II - Acceleration
-Table of Contents
sub setangle byref velocity.x, byref velocity.y,angle,byref speed,accelerationspeed=speed+acceleration 'we now add in the accelerationr.angle=angle/57.29577951scale.x=cos(r.angle)scale.y=sin(r.angle)velocity.x=speed*scale.xvelocity.y=speed*scale.yend sub