Fix jump collision and WMO doodad rotation bugs

Prevent character from being yanked down during upward jump movement, and correct quaternion rotation for holiday decorations.
This commit is contained in:
Kelsi 2026-02-09 00:41:19 -08:00
parent 28330adfb0
commit af0a3a4daf
2 changed files with 6 additions and 3 deletions

View file

@ -964,8 +964,8 @@ void CameraController::update(float deltaTime) {
float fallCatch = 3.0f;
float dz = *groundH - feetZ;
if (dz <= stepUp && dz >= -fallCatch &&
(verticalVelocity <= 0.0f || *groundH > feetZ)) {
// Only snap to ground when falling/landing (not when jumping up)
if (dz <= stepUp && dz >= -fallCatch && verticalVelocity <= 0.0f) {
newPos.z = *groundH + eyeHeight;
verticalVelocity = 0.0f;
grounded = true;