New answers tagged double-buffering
If A.collidesWith(B) then you don't need to check B.collidesWith(A). You only need to check for half of the collisions. If you have 3 objects A,B,C you only need to check collisions of A & B A & C B & C You should have a separate pass that checks collisions and calls both A and B's collision callback if a collision has occurred with a copy ...
Top 50 recent answers are included