mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Reduce WMO interior camera distance for tighter view
This commit is contained in:
parent
ed2a8a4e0a
commit
5610faa958
1 changed files with 1 additions and 1 deletions
|
|
@ -671,7 +671,7 @@ void CameraController::update(float deltaTime) {
|
|||
|
||||
// Limit max zoom when inside a WMO (building interior)
|
||||
// Throttle: only recheck every 10 frames or when position changes >2 units.
|
||||
static constexpr float WMO_MAX_DISTANCE = 5.0f;
|
||||
static constexpr float WMO_MAX_DISTANCE = 3.5f;
|
||||
if (wmoRenderer) {
|
||||
float distFromLastCheck = glm::length(targetPos - lastInsideWMOCheckPos);
|
||||
if (++insideWMOCheckCounter >= 10 || distFromLastCheck > 2.0f) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue