AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "ModelInstance.h"
Public Member Functions | |
ModelInstance () | |
ModelInstance (const ModelSpawn &spawn, WorldModel *model) | |
void | setUnloaded () |
bool | intersectRay (const G3D::Ray &pRay, float &pMaxDist, bool StopAtFirstHit, ModelIgnoreFlags ignoreFlags) const |
void | intersectPoint (const G3D::Vector3 &p, AreaInfo &info) const |
bool | GetLocationInfo (const G3D::Vector3 &p, LocationInfo &info) const |
bool | GetLiquidLevel (const G3D::Vector3 &p, LocationInfo &info, float &liqHeight) const |
WorldModel * | getWorldModel () |
Public Member Functions inherited from VMAP::ModelSpawn | |
bool | operator== (const ModelSpawn &other) const |
const G3D::AABox & | GetBounds () const |
Protected Attributes | |
G3D::Matrix3 | iInvRot |
float | iInvScale {0.0f} |
WorldModel * | iModel {nullptr} |
Additional Inherited Members | |
Static Public Member Functions inherited from VMAP::ModelSpawn | |
static bool | readFromFile (FILE *rf, ModelSpawn &spawn) |
static bool | writeToFile (FILE *rw, const ModelSpawn &spawn) |
Public Attributes inherited from VMAP::ModelSpawn | |
uint32 | flags |
uint16 | adtId |
uint32 | ID |
G3D::Vector3 | iPos |
G3D::Vector3 | iRot |
float | iScale |
G3D::AABox | iBound |
std::string | name |
|
inline |
VMAP::ModelInstance::ModelInstance | ( | const ModelSpawn & | spawn, |
WorldModel * | model | ||
) |
References iInvRot, iInvScale, VMAP::ModelSpawn::iRot, and VMAP::ModelSpawn::iScale.
bool VMAP::ModelInstance::GetLiquidLevel | ( | const G3D::Vector3 & | p, |
LocationInfo & | info, | ||
float & | liqHeight | ||
) | const |
References VMAP::GroupModel::GetLiquidLevel(), VMAP::LocationInfo::hitModel, iInvRot, iInvScale, VMAP::ModelSpawn::iPos, and VMAP::ModelSpawn::iScale.
Referenced by VMAP::VMapMgr2::GetAreaAndLiquidData(), and VMAP::VMapMgr2::GetLiquidLevel().
bool VMAP::ModelInstance::GetLocationInfo | ( | const G3D::Vector3 & | p, |
LocationInfo & | info | ||
) | const |
References VMAP::ModelSpawn::flags, VMAP::WorldModel::GetLocationInfo(), VMAP::LocationInfo::ground_Z, VMAP::LocationInfo::hitInstance, VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iScale, and VMAP::MOD_M2.
|
inline |
void VMAP::ModelInstance::intersectPoint | ( | const G3D::Vector3 & | p, |
AreaInfo & | info | ||
) | const |
References VMAP::AreaInfo::adtId, VMAP::ModelSpawn::adtId, VMAP::ModelSpawn::flags, VMAP::AreaInfo::ground_Z, VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::WorldModel::IntersectPoint(), VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iScale, and VMAP::MOD_M2.
Referenced by VMAP::AreaInfoCallback::operator()().
bool VMAP::ModelInstance::intersectRay | ( | const G3D::Ray & | pRay, |
float & | pMaxDist, | ||
bool | StopAtFirstHit, | ||
ModelIgnoreFlags | ignoreFlags | ||
) | const |
References VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::WorldModel::IntersectRay(), VMAP::ModelSpawn::iPos, and VMAP::ModelSpawn::iScale.
Referenced by VMAP::MapRayCallback::operator()().
|
inline |
References iModel.
Referenced by VMAP::StaticMapTree::UnloadMap(), and VMAP::StaticMapTree::UnloadMapTile().
|
protected |
Referenced by GetLiquidLevel(), GetLocationInfo(), intersectPoint(), intersectRay(), and ModelInstance().
|
protected |
Referenced by GetLiquidLevel(), GetLocationInfo(), intersectPoint(), intersectRay(), and ModelInstance().
|
protected |
Referenced by GetLocationInfo(), getWorldModel(), intersectPoint(), intersectRay(), and setUnloaded().