|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ModelInstance.h>
Public Member Functions | |
| bool | GetLiquidLevel (const G3D::Vector3 &p, LocationInfo &info, float &liqHeight) const |
| bool | GetLocationInfo (const G3D::Vector3 &p, LocationInfo &info) const |
| WorldModel * | getWorldModel () |
| void | intersectPoint (const G3D::Vector3 &p, AreaInfo &info) const |
| bool | intersectRay (const G3D::Ray &pRay, float &pMaxDist, bool pStopAtFirstHit) const |
| ModelInstance () | |
| ModelInstance (const ModelSpawn &spawn, WorldModel *model) | |
| void | setUnloaded () |
| Public Member Functions inherited from VMAP::ModelSpawn | |
| const G3D::AABox & | getBounds () const |
| bool | operator== (const ModelSpawn &other) const |
Protected Attributes | |
| G3D::Matrix3 | iInvRot |
| float | iInvScale |
| WorldModel * | iModel |
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 | |
| uint16 | adtId |
| uint32 | flags |
| G3D::AABox | iBound |
| uint32 | ID |
| G3D::Vector3 | iPos |
| G3D::Vector3 | iRot |
| float | iScale |
| std::string | name |
Definition at line 50 of file ModelInstance.h.
|
inline |
Definition at line 53 of file ModelInstance.h.
| ModelInstance::ModelInstance | ( | const ModelSpawn & | spawn, |
| WorldModel * | model ) |
Definition at line 16 of file ModelInstance.cpp.
References iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iRot, and VMAP::ModelSpawn::iScale.
| bool ModelInstance::GetLiquidLevel | ( | const G3D::Vector3 & | p, |
| LocationInfo & | info, | ||
| float & | liqHeight ) const |
Definition at line 125 of file ModelInstance.cpp.
References VMAP::GroupModel::GetLiquidLevel(), VMAP::LocationInfo::hitModel, iInvRot, iInvScale, VMAP::ModelSpawn::iPos, and VMAP::ModelSpawn::iScale.
Referenced by VMAP::VMapManager2::GetLiquidLevel().
| bool ModelInstance::GetLocationInfo | ( | const G3D::Vector3 & | p, |
| LocationInfo & | info ) const |
Definition at line 89 of file ModelInstance.cpp.
References VMAP::ModelSpawn::flags, VMAP::LocationInfo::ground_Z, VMAP::LocationInfo::hitInstance, VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iScale, and VMAP::MOD_M2.
| WorldModel * ModelInstance::getWorldModel | ( | ) |
Definition at line 45 of file VMapExtensions.cpp.
References iModel.
Referenced by MMAP::TerrainBuilder::loadVMap().
| void ModelInstance::intersectPoint | ( | const G3D::Vector3 & | p, |
| AreaInfo & | info ) const |
Definition at line 55 of file ModelInstance.cpp.
References VMAP::AreaInfo::adtId, VMAP::ModelSpawn::adtId, VMAP::ModelSpawn::flags, VMAP::AreaInfo::ground_Z, VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iPos, VMAP::ModelSpawn::iScale, and VMAP::MOD_M2.
| bool ModelInstance::intersectRay | ( | const G3D::Ray & | pRay, |
| float & | pMaxDist, | ||
| bool | pStopAtFirstHit ) const |
Definition at line 22 of file ModelInstance.cpp.
References VMAP::ModelSpawn::iBound, iInvRot, iInvScale, iModel, VMAP::ModelSpawn::iPos, and VMAP::ModelSpawn::iScale.
|
inline |
Definition at line 55 of file ModelInstance.h.
References iModel.
|
protected |
Definition at line 61 of file ModelInstance.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), intersectPoint(), intersectRay(), and ModelInstance().
|
protected |
Definition at line 62 of file ModelInstance.h.
Referenced by GetLiquidLevel(), GetLocationInfo(), intersectPoint(), intersectRay(), ModelInstance(), and ModelInstance().
|
protected |
Definition at line 63 of file ModelInstance.h.
Referenced by GetLocationInfo(), getWorldModel(), intersectPoint(), intersectRay(), ModelInstance(), ModelInstance(), and setUnloaded().