aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2018-08-29 17:16:19 +0200
committerTreeston <treeston.mmoc@gmail.com>2018-08-29 17:16:19 +0200
commit28eeb4bfc982407cff398730ecb1be9712e9ecca (patch)
tree5c5b9e93f06d91891f44c3e43615a39d4aef9c76 /src
parente63e0cb6fc6360e6e80874371dd612c46b0c0482 (diff)
Core/GameObject: Add getter for current Quat rotation
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/GameObject/GameObject.h1
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 c8308ded896..4d28a4b362c 100644
--- a/src/server/game/Entities/GameObject/GameObject.h
+++ b/src/server/game/Entities/GameObject/GameObject.h
@@ -107,6 +107,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