TrinityCore
|
#include <WorldModel.h>
Public Member Functions | |
WorldModel () | |
void | setGroupModels (std::vector< GroupModel > &models) |
pass group models to WorldModel and create BIH. Passed vector is swapped with old geometry! More... | |
void | setRootWmoID (uint32 id) |
bool | IntersectRay (const G3D::Ray &ray, float &distance, bool stopAtFirstHit) const |
bool | IntersectPoint (const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, AreaInfo &info) const |
bool | GetLocationInfo (const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, LocationInfo &info) const |
bool | writeFile (const std::string &filename) |
bool | readFile (const std::string &filename) |
void | getGroupModels (std::vector< GroupModel > &outGroupModels) |
Protected Attributes | |
uint32 | RootWMOID |
std::vector< GroupModel > | groupModels |
BIH | groupTree |
Holds a model (converted M2 or WMO) in its original coordinate space
|
inline |
void VMAP::WorldModel::getGroupModels | ( | std::vector< GroupModel > & | outGroupModels | ) |
bool VMAP::WorldModel::GetLocationInfo | ( | const G3D::Vector3 & | p, |
const G3D::Vector3 & | down, | ||
float & | dist, | ||
LocationInfo & | info | ||
) | const |
bool VMAP::WorldModel::IntersectPoint | ( | const G3D::Vector3 & | p, |
const G3D::Vector3 & | down, | ||
float & | dist, | ||
AreaInfo & | info | ||
) | const |
bool VMAP::WorldModel::IntersectRay | ( | const G3D::Ray & | ray, |
float & | distance, | ||
bool | stopAtFirstHit | ||
) | const |
void VMAP::WorldModel::setGroupModels | ( | std::vector< GroupModel > & | models | ) |
pass group models to WorldModel and create BIH. Passed vector is swapped with old geometry!
|
inline |
|
protected |
|
protected |
|
protected |