AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
VMAP::WModelRayCallBack Struct Reference

Public Member Functions

 WModelRayCallBack (const std::vector< GroupModel > &mod)
 
bool operator() (const G3D::Ray &ray, uint32 entry, float &distance, bool StopAtFirstHit)
 

Public Attributes

std::vector< GroupModel >::const_iterator models
 
bool hit
 

Detailed Description

Constructor & Destructor Documentation

◆ WModelRayCallBack()

VMAP::WModelRayCallBack::WModelRayCallBack ( const std::vector< GroupModel > &  mod)
inline
506: models(mod.begin()), hit(false) { }
bool hit
Definition: WorldModel.cpp:514
std::vector< GroupModel >::const_iterator models
Definition: WorldModel.cpp:513

Member Function Documentation

◆ operator()()

bool VMAP::WModelRayCallBack::operator() ( const G3D::Ray &  ray,
uint32  entry,
float &  distance,
bool  StopAtFirstHit 
)
inline
508 {
509 bool result = models[entry].IntersectRay(ray, distance, StopAtFirstHit);
510 if (result) { hit = true; }
511 return hit;
512 }

References hit, and models.

Member Data Documentation

◆ hit

bool VMAP::WModelRayCallBack::hit

◆ models

std::vector<GroupModel>::const_iterator VMAP::WModelRayCallBack::models

Referenced by operator()().