![]() |
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 |
| 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().
| 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::GroupLocationInfo::hitModel, VMAP::LocationInfo::hitModel, VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iScale, VMAP::MOD_M2, VMAP::GroupLocationInfo::rootId, and VMAP::LocationInfo::rootId.
|
inline |
| 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(), intersectRay(), and ModelInstance().
|
protected |
Referenced by GetLiquidLevel(), GetLocationInfo(), intersectRay(), and ModelInstance().
|
protected |
Referenced by GetLocationInfo(), getWorldModel(), intersectRay(), and setUnloaded().