mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-04 09:45:33 +00:00
fix rotation angles
This commit is contained in:
parent
6b996d8c34
commit
181d45661f
1 changed files with 2 additions and 2 deletions
|
@ -269,8 +269,8 @@ RenderingManager::rotateObject(
|
||||||
}
|
}
|
||||||
|
|
||||||
Ogre::Quaternion xr(Ogre::Degree(rot.x), Ogre::Vector3::UNIT_X);
|
Ogre::Quaternion xr(Ogre::Degree(rot.x), Ogre::Vector3::UNIT_X);
|
||||||
Ogre::Quaternion yr(Ogre::Degree(-rot.z), Ogre::Vector3::UNIT_Y);
|
Ogre::Quaternion yr(Ogre::Degree(rot.y), Ogre::Vector3::UNIT_Y);
|
||||||
Ogre::Quaternion zr(Ogre::Degree(rot.y), Ogre::Vector3::UNIT_Z);
|
Ogre::Quaternion zr(Ogre::Degree(rot.z), Ogre::Vector3::UNIT_Z);
|
||||||
|
|
||||||
ptr.getRefData().getBaseNode()->setOrientation(xr * yr * zr);
|
ptr.getRefData().getBaseNode()->setOrientation(xr * yr * zr);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue