From c13d26e1fa40ac8d40e1b4f7c72e4c1ef3f6c5e8 Mon Sep 17 00:00:00 2001 From: Shauren Date: Sun, 22 May 2022 14:53:05 +0200 Subject: Core/GameObjects: Use all axis rotations for gameobject model collision, not just orientation --- src/common/Collision/Models/GameObjectModel.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/common/Collision/Models/GameObjectModel.h') diff --git a/src/common/Collision/Models/GameObjectModel.h b/src/common/Collision/Models/GameObjectModel.h index c10a8bfdea2..a8a5c6fc5e0 100644 --- a/src/common/Collision/Models/GameObjectModel.h +++ b/src/common/Collision/Models/GameObjectModel.h @@ -26,6 +26,11 @@ #include "Define.h" #include +namespace G3D +{ +class Quat; +} + namespace VMAP { class WorldModel; @@ -48,7 +53,7 @@ public: virtual uint8 GetNameSetId() const = 0; virtual bool IsInPhase(PhaseShift const& /*phaseShift*/) const = 0; virtual G3D::Vector3 GetPosition() const = 0; - virtual float GetOrientation() const = 0; + virtual G3D::Quat GetRotation() const = 0; virtual float GetScale() const = 0; virtual void DebugVisualizeCorner(G3D::Vector3 const& /*corner*/) const = 0; }; -- cgit v1.2.3