It would be good to have an assert here to check the implicit assumption that if `frame->IsRotFrame()` is true, then `(frame == Pi::player->GetFrame())`. Because if `frame` is not the player's current frame, then the call to `GetPosition()` is incorrect.