Update physics engine.