mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
Fix game object rotation - remove incorrect 90 degree offset
Game objects (wreaths, guild vaults, mailboxes, etc) were being rotated 90 degrees incorrectly due to an unnecessary orientation offset when spawning. Fixed by removing the glm::radians(90.0f) offset from renderYaw calculation. Objects now use the correct server-provided orientation directly. Affects both WMO and M2 game object rendering.
This commit is contained in:
parent
c002f59699
commit
28aa88608f
1 changed files with 1 additions and 1 deletions
|
|
@ -2573,7 +2573,7 @@ void Application::spawnOnlineGameObject(uint64_t guid, uint32_t displayId, float
|
|||
bool isWmo = lowerPath.size() >= 4 && lowerPath.substr(lowerPath.size() - 4) == ".wmo";
|
||||
|
||||
glm::vec3 renderPos = core::coords::canonicalToRender(glm::vec3(x, y, z));
|
||||
float renderYaw = orientation + glm::radians(90.0f);
|
||||
float renderYaw = orientation;
|
||||
|
||||
bool loadedAsWmo = false;
|
||||
if (isWmo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue