mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix terrain collision by correcting spawn coordinates
- Spawn position changed to (-9080, -100, 100) which is on actual terrain - The terrain mesh uses WoW coordinates from ADT files directly - Camera/spawn position must use same coordinate system as terrain - Cleaned up getHeightAt comments to clarify coordinate system - Removed debug logging from WMO floor detection
This commit is contained in:
parent
a97ebfbc60
commit
a9dd685398
3 changed files with 18 additions and 12 deletions
|
|
@ -126,8 +126,9 @@ private:
|
|||
static constexpr float WOW_GRAVITY = -19.29f;
|
||||
static constexpr float WOW_JUMP_VELOCITY = 7.96f;
|
||||
|
||||
// Default spawn position (on the road outside Stormwind)
|
||||
glm::vec3 defaultPosition = glm::vec3(-8830.0f, -150.0f, 82.0f);
|
||||
// Default spawn position (on terrain near Stormwind)
|
||||
// Terrain chunks are around X=[-9100, -9066], Y=[-533, 0]
|
||||
glm::vec3 defaultPosition = glm::vec3(-9080.0f, -100.0f, 100.0f);
|
||||
float defaultYaw = 180.0f; // Look south toward Stormwind gate
|
||||
float defaultPitch = -5.0f;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue