Collision detection of player larger than clipping tile
Posted
by
user1306322
on Game Development
See other posts from Game Development
or by user1306322
Published on 2012-07-05T23:40:42Z
Indexed on
2012/07/06
3:24 UTC
Read the original article
Hit count: 245
collision-detection
I want to know how to check for collisions efficiently in case where the player's box is larger than a map tile.
On the left is my usual case where I make 8 checks against every surrounding tile, but with the right one it would be much more inefficient.
(picture of two cases: on the left is the simple case, on the right is the one I need help with) http://i.stack.imgur.com/k7q0l.png
How should I handle the right case?
© Game Development or respective owner