renamed Polygon class to PhysicsPolygon
added generic to register method