|
-
Feb 29th, 2012, 01:38 PM
#1
Thread Starter
New Member
Finding the heading (NSEW) between 2 points?
A 2D sprite has an x/y location, x/y direction, and x/y velocity.
During each update call, its location = (location + (direction * velocity)).
This enables it to travel in any and all directions at varying speeds.
Using this information, how would you find the angle (in degrees) between it's current location, and it's next location?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|