physics: fix gravity termination