#include <ModelInstance.h>
VMAP::ModelInstance::ModelInstance |
( |
| ) |
|
|
inline |
float iInvScale
Definition: ModelInstance.h:76
WorldModel * iModel
Definition: ModelInstance.h:77
29 : ModelSpawn(spawn),
iModel(model)
float x
Definition: Vector3.h:62
float iInvScale
Definition: ModelInstance.h:76
float y
Definition: Vector3.h:62
float iScale
Definition: ModelInstance.h:51
bool inverse(Matrix3 &rkInverse, float fTolerance=1e-06f) const
Definition: Matrix3.cpp:404
float z
Definition: Vector3.h:62
WorldModel * iModel
Definition: ModelInstance.h:77
float pif()
Definition: g3dmath.h:151
static Matrix3 fromEulerAnglesZYX(float fYAngle, float fPAngle, float fRAngle)
Definition: Matrix3.cpp:1664
G3D::Vector3 iRot
Definition: ModelInstance.h:50
G3D::Matrix3 iInvRot
Definition: ModelInstance.h:75
144 if (info.hitModel->GetLiquidLevel(pModel, zDist))
G3D::Vector3 iPos
Definition: ModelInstance.h:49
float iInvScale
Definition: ModelInstance.h:76
float iScale
Definition: ModelInstance.h:51
float z
Definition: Vector3.h:62
G3D::Matrix3 iInvRot
Definition: ModelInstance.h:75
107 std::cout <<
"<object not loaded>\n";
123 Vector3 modelGround = pModel + zDist * zDirModel;
128 if (info.ground_Z < world_Z)
130 info.ground_Z = world_Z;
131 info.hitInstance =
this;
G3D::Vector3 iPos
Definition: ModelInstance.h:49
bool GetLocationInfo(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, LocationInfo &info) const
Definition: WorldModel.cpp:516
bool contains(const AABox &other) const
Definition: AABox.h:238
float iInvScale
Definition: ModelInstance.h:76
float iScale
Definition: ModelInstance.h:51
Definition: ModelInstance.h:37
G3D::AABox iBound
Definition: ModelInstance.h:52
float z
Definition: Vector3.h:62
WorldModel * iModel
Definition: ModelInstance.h:77
uint32 flags
Definition: ModelInstance.h:46
G3D::Matrix3 iInvRot
Definition: ModelInstance.h:75
WorldModel* VMAP::ModelInstance::getWorldModel |
( |
| ) |
|
|
inline |
WorldModel * iModel
Definition: ModelInstance.h:77
73 std::cout <<
"<object not loaded>\n";
89 Vector3 modelGround = pModel + zDist * zDirModel;
94 if (info.ground_Z < world_Z)
96 info.ground_Z = world_Z;
G3D::Vector3 iPos
Definition: ModelInstance.h:49
bool contains(const AABox &other) const
Definition: AABox.h:238
float iInvScale
Definition: ModelInstance.h:76
float iScale
Definition: ModelInstance.h:51
Definition: ModelInstance.h:37
G3D::AABox iBound
Definition: ModelInstance.h:52
float z
Definition: Vector3.h:62
WorldModel * iModel
Definition: ModelInstance.h:77
uint32 flags
Definition: ModelInstance.h:46
uint16 adtId
Definition: ModelInstance.h:47
bool IntersectPoint(const G3D::Vector3 &p, const G3D::Vector3 &down, float &dist, AreaInfo &info) const
Definition: WorldModel.cpp:497
G3D::Matrix3 iInvRot
Definition: ModelInstance.h:75
float finf()
Definition: g3dmath.cpp:71
G3D::Vector3 iPos
Definition: ModelInstance.h:49
float iInvScale
Definition: ModelInstance.h:76
double distance(double x, double y)
Definition: g3dmath.h:731
float iScale
Definition: ModelInstance.h:51
bool IntersectRay(const G3D::Ray &ray, float &distance, bool stopAtFirstHit) const
Definition: WorldModel.cpp:448
G3D::AABox iBound
Definition: ModelInstance.h:52
const Point3 & origin() const
Definition: Ray.h:56
WorldModel * iModel
Definition: ModelInstance.h:77
const Vector3 & direction() const
Definition: Ray.h:61
float intersectionTime(const class Sphere &sphere, bool solid=false) const
Definition: Ray.cpp:179
G3D::Matrix3 iInvRot
Definition: ModelInstance.h:75
void VMAP::ModelInstance::setUnloaded |
( |
| ) |
|
|
inline |
WorldModel * iModel
Definition: ModelInstance.h:77
float VMAP::ModelInstance::iInvScale |
|
protected |
The documentation for this class was generated from the following files: