mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-03-03 15:57:47 +00:00
fix(Core/GameObject): Use quaternion rotation directly instead of orientation hackfix (#24602)
Co-authored-by: blinkysc <blinkysc@users.noreply.github.com> Co-authored-by: zergtmn <zerg@myisp.com>
This commit is contained in:
@@ -678,9 +678,23 @@ struct GameObjectLocale
|
||||
std::vector<std::string> CastBarCaption;
|
||||
};
|
||||
|
||||
struct AC_GAME_API QuaternionData
|
||||
{
|
||||
float x;
|
||||
float y;
|
||||
float z;
|
||||
float w;
|
||||
|
||||
QuaternionData() : x(0.0f), y(0.0f), z(0.0f), w(1.0f) { }
|
||||
QuaternionData(float X, float Y, float Z, float W) : x(X), y(Y), z(Z), w(W) { }
|
||||
|
||||
[[nodiscard]] bool IsUnit() const;
|
||||
};
|
||||
|
||||
// `gameobject_addon` table
|
||||
struct GameObjectAddon
|
||||
{
|
||||
QuaternionData ParentRotation;
|
||||
InvisibilityType invisibilityType;
|
||||
uint32 InvisibilityValue;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user