You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

function [vx , vy] = initialVelocity(initialAngle, speed)
	vx = cos(initialAngle)*speed;
	vy = sin(initialAngle)*speed;
end
function [x, y] = position(x,y, vx, vy, dt)
	x = x + vx*dt;
	y = y + vy*dt;
end 
 
 
 
  • No labels