TrinityCore
Loading...
Searching...
No Matches
VMAP::GModelRayCallback Struct Reference

Public Member Functions

 GModelRayCallback (std::vector< MeshTriangle > const &tris, std::vector< G3D::Vector3 > const &vert)
 
bool operator() (G3D::Ray const &ray, uint32 entry, float &distance, bool)
 

Public Attributes

G3D::Vector3 const * vertices
 
MeshTriangle const * triangles
 
bool hit
 

Detailed Description

Definition at line 390 of file WorldModel.cpp.

Constructor & Destructor Documentation

◆ GModelRayCallback()

VMAP::GModelRayCallback::GModelRayCallback ( std::vector< MeshTriangle > const &  tris,
std::vector< G3D::Vector3 > const &  vert 
)
inline

Definition at line 392 of file WorldModel.cpp.

Member Function Documentation

◆ operator()()

bool VMAP::GModelRayCallback::operator() ( G3D::Ray const &  ray,
uint32  entry,
float &  distance,
bool   
)
inline

Definition at line 394 of file WorldModel.cpp.

References hit, VMAP::IntersectTriangle(), triangles, and vertices.

Member Data Documentation

◆ hit

bool VMAP::GModelRayCallback::hit

Definition at line 400 of file WorldModel.cpp.

Referenced by VMAP::GroupModel::IntersectRay(), and operator()().

◆ triangles

MeshTriangle const* VMAP::GModelRayCallback::triangles

Definition at line 399 of file WorldModel.cpp.

Referenced by operator()().

◆ vertices

G3D::Vector3 const* VMAP::GModelRayCallback::vertices

Definition at line 398 of file WorldModel.cpp.

Referenced by operator()().


The documentation for this struct was generated from the following file: