Core/GameObject: Add getter for current Quat rotation

(cherry picked from commit 28eeb4bfc9)
This commit is contained in:
Treeston
2018-08-29 17:16:19 +02:00
committed by Shauren
parent 852164132c
commit ca5df17dc2

View File

@@ -120,6 +120,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
void SetWorldRotationAngles(float z_rot, float y_rot, float x_rot);
void SetWorldRotation(float qx, float qy, float qz, float qw);
void SetParentRotation(QuaternionData const& rotation); // transforms(rotates) transport's path
QuaternionData const& GetWorldRotation() const { return m_worldRotation; }
int64 GetPackedWorldRotation() const { return m_packedRotation; }
// overwrite WorldObject function for proper name localization