22 #ifndef STARK_MODEL_MODEL_H 23 #define STARK_MODEL_MODEL_H 25 #include "common/array.h" 26 #include "common/str.h" 29 #include "math/vector3d.h" 37 class ArchiveReadStream;
41 Math::Vector3d _pos1, _pos2;
42 Math::Vector3d _normal;
44 uint32 _bone1, _bone2;
52 Face() : materialId(0) {}
61 Material() : r(0), g(0), b(0), doubleSided(
false) {};
66 BoneNode() : _parent(-1), _idx(0), _u1(0) {}
70 bool intersectRay(
const Math::Ray &ray)
const;
73 void expandModelSpaceBB(Math::AABB &aabb)
const;
81 Math::Vector3d _animPos;
82 Math::Quaternion _animRot;
107 bool intersectRay(
const Math::Ray &ray)
const;
110 void updateBoundingBox();
113 Math::AABB getBoundingBox()
const;
116 void buildBonesBoundingBoxes();
117 void buildBoneBoundingBox(
BoneNode *bone)
const;
128 Math::AABB _boundingBox;
133 #endif // STARK_MODEL_MODEL_H
Math::AABB _boundingBox
Definition: model.h:85
Definition: archiveloader.h:46