107 VMAP_ERROR_LOG(
"misc",
"GameObject model %s has zero bounds, loading skipped", it->second.name.c_str());
116 name = it->second.name;
126 AABox rotated_bounds;
127 for (
int i = 0; i < 8; ++i)
128 rotated_bounds.
merge(iRotation * mdl_box.corner(i));
133 for (
int i = 0; i < 8; ++i)
140 owner = std::move(modelOwner);
G3D::Matrix3 iInvRot
Definition: GameObjectModel.h:79
uint32 phasemask
Definition: GameObjectModel.h:77
void merge(const AABox &a)
Definition: AABox.h:106
Definition: VMapManager2.h:78
virtual float GetScale() const
Definition: GameObjectModel.h:46
virtual uint32 GetPhaseMask() const
Definition: GameObjectModel.h:43
G3D::AABox iBound
Definition: GameObjectModel.h:78
virtual float GetOrientation() const
Definition: GameObjectModel.h:45
ModelList model_list
Definition: GameObjectModel.cpp:41
virtual uint32 GetDisplayId() const
Definition: GameObjectModel.h:42
VMAP::WorldModel * iModel
Definition: GameObjectModel.h:83
virtual G3D::Vector3 GetPosition() const
Definition: GameObjectModel.h:44
bool inverse(Matrix3 &rkInverse, float fTolerance=1e-06f) const
Definition: Matrix3.cpp:404
std::unique_ptr< GameObjectModelOwnerBase > owner
Definition: GameObjectModel.h:84
G3D::Vector3 iPos
Definition: GameObjectModel.h:80
static const AABox & zero()
Definition: AABox.cpp:87
float iScale
Definition: GameObjectModel.h:82
static IVMapManager * createOrGetVMapManager()
Definition: VMapFactory.cpp:28
#define VMAP_ERROR_LOG(FILTER,...)
Definition: VMapDefinitions.h:38
static Matrix3 fromEulerAnglesZYX(float fYAngle, float fPAngle, float fRAngle)
Definition: Matrix3.cpp:1664
virtual void DebugVisualizeCorner(G3D::Vector3 const &) const
Definition: GameObjectModel.h:47
float iInvScale
Definition: GameObjectModel.h:81
std::string name
Definition: GameObjectModel.h:54
Point3 corner(int index) const
Definition: AABox.cpp:361