louisstow/Crafty — Issue #149: collision detection with big polygons
Author: sorenbs
Created: 2011-12-02 06:15:05+00:00
State: open

When a polygon that is larger than the entity is used for collision detection, collision is only detected for the part of the polygon that is inside the entitys bounding box.

In this example a circle is used:
http://jsfiddle.net/yUPdt/1/

I think the problem is that when we search for potential colliding entities in the hash map the filtering is done on the bounding box of the entity and not the polygon.