Archived

This topic is now archived and is closed to further replies.

Vector-based movement

This topic is 5587 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

A friend of mine tried to argue that using vectors in a 2d tile engine is easier then just moving from tile to tile (8 way movement is immplemented). He said its easier to do collisions and takes less time for the game to check collisions. When I asked him why he thought so, he shut up. (figures right? ) I tried looking for an example of what he''s talking about on gamedev but haven''t found anything. Could anyone present a code example or give me a link to a site with it? He won''t tell me and I like to find out about it.

Share this post


Link to post
Share on other sites
Sorry, I meant how many squares your object is searching. If you are doing a zero-radius bounding box/circle, then just seeing if the object runs into another object is pretty easy. On the other hand, when the radius is one or more, it seems that having to check distance is faster and easier than checking every surrounding tile individually.

John.

Share this post


Link to post
Share on other sites