remove dangling shape pointers from PhysicsSimulation