Tune wall collision for stairs and reduce camera distance in WMOs

Skip short vertical surfaces (stair risers) to allow climbing stairs.
Reduce WMO interior max camera zoom to 8 units and soften wall pushback.
This commit is contained in:
Kelsi 2026-02-05 18:23:29 -08:00
parent 6f2d9174c9
commit 50b2c43319
2 changed files with 6 additions and 3 deletions

View file

@ -615,7 +615,7 @@ void CameraController::update(float deltaTime) {
currentDistance += (userTargetDistance - currentDistance) * zoomLerp;
// Limit max zoom when inside a WMO (building interior)
static constexpr float WMO_MAX_DISTANCE = 15.0f;
static constexpr float WMO_MAX_DISTANCE = 8.0f;
if (wmoRenderer && wmoRenderer->isInsideWMO(targetPos.x, targetPos.y, targetPos.z + 1.0f, nullptr)) {
if (currentDistance > WMO_MAX_DISTANCE) {
currentDistance = WMO_MAX_DISTANCE;