Small problem, moving towards a point
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?
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
read this:
http://en.wikipedia.org/wiki/Vector_(spatial)
-me
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement