Fix /unstuckgy hang by skipping WMO floor search

Add CameraController::teleportTo() that directly places the player at
the target position without the expensive floor-search loop in reset().
The loop does hundreds of WMO collision checks which hangs in cities.
This commit is contained in:
Kelsi 2026-02-08 15:13:55 -08:00
parent eb92a71b71
commit 8fee55f99f
3 changed files with 29 additions and 2 deletions

View file

@ -42,6 +42,7 @@ public:
}
void reset();
void teleportTo(const glm::vec3& pos);
void setOnlineMode(bool online) { onlineMode = online; }
void startIntroPan(float durationSec = 2.8f, float orbitDegrees = 140.0f);
bool isIntroActive() const { return introActive; }