Refactoring: func didSimulatePhysics