Small problem, moving towards a point

Started by
0 comments, last by Palidine 16 years, 12 months ago
If I want to move an object from point 0,0 in the direction of point 100,400 how would I calculate the velocities for x and y?
Advertisement
Well. the direction vector is just P2 - P1. Normalize that and then scale it by the speed of the object. The resultant values of X and Y in that vector are your X and Y velocities.

read this:
http://en.wikipedia.org/wiki/Vector_(spatial)

-me

This topic is closed to new replies.

Advertisement