mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Remove +90° rotation from M2 game object orientation
M2 game objects don't need the extra 90° yaw offset that was previously applied — orientation from server is used directly.
This commit is contained in:
parent
fa1867cf2f
commit
786b35ae0d
1 changed files with 0 additions and 4 deletions
|
|
@ -1722,7 +1722,6 @@ void Application::setupUICallbacks() {
|
|||
if (auto* mr = renderer->getM2Renderer()) {
|
||||
glm::mat4 transform(1.0f);
|
||||
transform = glm::translate(transform, renderPos);
|
||||
transform = glm::rotate(transform, orientation + glm::radians(90.0f), glm::vec3(0, 0, 1));
|
||||
mr->setInstanceTransform(info.instanceId, transform);
|
||||
}
|
||||
}
|
||||
|
|
@ -5452,8 +5451,6 @@ void Application::spawnOnlineGameObject(uint64_t guid, uint32_t entry, uint32_t
|
|||
if (auto* mr = renderer->getM2Renderer()) {
|
||||
glm::mat4 transform(1.0f);
|
||||
transform = glm::translate(transform, renderPos);
|
||||
// M2 gameobjects use the same canonical→render yaw as characters.
|
||||
transform = glm::rotate(transform, orientation + glm::radians(90.0f), glm::vec3(0, 0, 1));
|
||||
mr->setInstanceTransform(info.instanceId, transform);
|
||||
}
|
||||
}
|
||||
|
|
@ -5508,7 +5505,6 @@ void Application::spawnOnlineGameObject(uint64_t guid, uint32_t entry, uint32_t
|
|||
|
||||
glm::vec3 renderPos = core::coords::canonicalToRender(glm::vec3(x, y, z));
|
||||
const float renderYawWmo = orientation;
|
||||
const float renderYawM2 = orientation + glm::radians(90.0f);
|
||||
|
||||
bool loadedAsWmo = false;
|
||||
if (isWmo) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue