mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 15:50:20 +00:00
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:
parent
6f2d9174c9
commit
50b2c43319
2 changed files with 6 additions and 3 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue