mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Entities/GameObject: Expose GO rotation to scripting.
This commit is contained in:
@@ -701,6 +701,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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user