mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-18 00:18:43 +01:00
Core/GameObject: Add getter for current Quat rotation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user