diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-08-29 17:16:19 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-10-23 16:00:05 +0200 |
commit | ca5df17dc24c4007615d9cfed49f5a8f80ae07f2 (patch) | |
tree | 641f093f0c7c1ff6e11a5e8cdd312a248d060426 | |
parent | 852164132cd7a545b90bf938d02893c1bb01651a (diff) |
Core/GameObject: Add getter for current Quat rotation
(cherry picked from commit 28eeb4bfc982407cff398730ecb1be9712e9ecca)
-rw-r--r-- | src/server/game/Entities/GameObject/GameObject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index fd06e490ec9..a12e96572da 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -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 |