Improve rendering distances, camera collision, and spawn point

- Increase WMO render distance from 1500 to 3000 units for better city loading
- Increase M2 render distance from 500 to 1000 units
- Increase terrain load radius from 4 to 6 tiles (~3200 units)
- Add raycast-based camera collision that zooms in when obstructed by walls/objects
- Move spawn point outside chapel to road near Stormwind gate
- Add ground height smoothing to prevent stumbling on uneven terrain
This commit is contained in:
Kelsi 2026-02-02 23:18:34 -08:00
parent 76a16a214e
commit a8cf17e7e5
7 changed files with 142 additions and 12 deletions

View file

@ -240,8 +240,8 @@ private:
// Streaming parameters
bool streamingEnabled = true;
int loadRadius = 4; // Load tiles within this radius (9x9 grid, ~2133 units)
int unloadRadius = 6; // Unload tiles beyond this radius (~3200 units, past far clip)
int loadRadius = 6; // Load tiles within this radius (13x13 grid, ~3200 units)
int unloadRadius = 8; // Unload tiles beyond this radius (~4266 units)
float updateInterval = 0.1f; // Check streaming every 0.1 seconds
float timeSinceLastUpdate = 0.0f;