|
-
Apr 19th, 2001, 05:52 PM
#1
Something similar to what i was asking earlier. I have one point, which is the current position, and I have a destination (this is in 2D). What i want to do is first, get an angle, so that the actor at point 1 is looking at point 2, and second, have the actor move until its at (or somewhere close, using singles/floats) the destination. Any help is most definately appreciated. Also, my method of choice for movement is to use sin() and cos(), like this: CurrPos.X + cos(facing), CurrPos.Y + sin(facing), but anything will do =). Thanks much.
Z.
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
|