From bdbe3f22e008b7153384b43bcec56002676cb26b Mon Sep 17 00:00:00 2001 From: treeston Date: Thu, 25 Aug 2016 13:11:16 +0200 Subject: Entities/GameObject: Expose GO rotation to scripting. --- src/server/game/Entities/GameObject/GameObject.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/server/game/Entities/GameObject/GameObject.h b/src/server/game/Entities/GameObject/GameObject.h index 85be274fe46..4fcb31e1722 100644 --- a/src/server/game/Entities/GameObject/GameObject.h +++ b/src/server/game/Entities/GameObject/GameObject.h @@ -690,6 +690,7 @@ class TC_GAME_API GameObject : public WorldObject, public GridObject // 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; } -- cgit v1.2.3