Huge commit. PhysEngine.collisionDetection() is now a lot cleaner, Physics now creates a polygon made by the rectangle if no polygon is provided, PhysEngine.collisionDetection() checks only polygons for collision.