aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Entities
diff options
context:
space:
mode:
authortreeston <treeston.mmoc@gmail.com>2016-08-25 13:11:16 +0200
committerjoschiwald <joschiwald.trinity@gmail.com>2017-02-18 16:53:44 +0100
commit77ecafaa422c7ee8951041724855f9743581df3f (patch)
treec06857eeb2b84b628cdcf545af622a44c610441f /src/server/game/Entities
parent5aa7e2a133858aab06f8d42d44a07074520b1ec8 (diff)
Entities/GameObject: Expose GO rotation to scripting.
(cherry picked from commit bdbe3f22e008b7153384b43bcec56002676cb26b)
Diffstat (limited to 'src/server/game/Entities')
-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 171b2fc921f..f438c0366b8 100644
--- a/src/server/game/Entities/GameObject/GameObject.h
+++ b/src/server/game/Entities/GameObject/GameObject.h
@@ -965,6 +965,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject<GameObject>
// z_rot, y_rot, x_rot - rotation angles around z, y and x axes
void SetWorldRotationAngles(float z_rot, float y_rot, float x_rot);
void SetWorldRotation(G3D::Quat const& rot);
+ G3D::Quat const& GetWorldRotation() const { return m_worldRotation; }
void SetParentRotation(G3D::Quat const& rotation); // transforms(rotates) transport's path
int64 GetPackedWorldRotation() const { return m_packedRotation; }