Add a physics flag to undo()