Removed redundant collisionPolygons.clear()