Zak Arntson wrote:
the algorithm is pretty sound, the big problem is how often this function is probably being called. the best bet is to think of the common cases where this test will fail. i'm not sure of your gameplay but i'd pick some of these from the list and try to apply them.My Game class has the following method, called by each Mover during its thinking phase. (non-pygamers: centerx and centery are the x & y values at the center of the rect)