Refactored PhysicsSystem for PhysicsShape.