Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
Posted 14 July 2001 - 09:00 AM
Posted 14 July 2001 - 10:49 AM
Posted 14 July 2001 - 11:01 AM
Posted 14 July 2001 - 12:24 PM
Posted 16 July 2001 - 01:21 PM
quote:
Original post by Grudzio
When you have initial velocity v0 and angle alpha, then velocity
along x axis is vx = v0*sin(alpha) and along y axis
vy = v0*cos(alpha)+g*t. Then as CmndrM says,
x = x + vx;
vy = vy + g;
y = y + vy;
The sign of g depends on orientation of y axis. If y values increase from bottom to top then g is negative. Otherwise g is positive.
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.
GameDev.net™, the GameDev.net logo, and GDNet™ are trademarks of GameDev.net, LLC.