TrinityCore
Loading...
Searching...
No Matches
DynamicTreeIntersectionCallback Struct Reference

Public Member Functions

 DynamicTreeIntersectionCallback (PhaseShift const &phaseShift)
 
bool operator() (G3D::Ray const &r, GameObjectModel const &obj, float &distance)
 
bool didHit () const
 

Private Attributes

bool _didHit
 
PhaseShift const & _phaseShift
 

Detailed Description

Definition at line 131 of file DynamicTree.cpp.

Constructor & Destructor Documentation

◆ DynamicTreeIntersectionCallback()

DynamicTreeIntersectionCallback::DynamicTreeIntersectionCallback ( PhaseShift const &  phaseShift)
inline

Definition at line 133 of file DynamicTree.cpp.

Member Function Documentation

◆ didHit()

bool DynamicTreeIntersectionCallback::didHit ( ) const
inline

Definition at line 141 of file DynamicTree.cpp.

References _didHit.

Referenced by DynamicMapTree::getHeight(), and DynamicMapTree::getIntersectionTime().

◆ operator()()

bool DynamicTreeIntersectionCallback::operator() ( G3D::Ray const &  r,
GameObjectModel const &  obj,
float &  distance 
)
inline

Definition at line 135 of file DynamicTree.cpp.

References _didHit, _phaseShift, GameObjectModel::IntersectRay(), and VMAP::Nothing.

Member Data Documentation

◆ _didHit

bool DynamicTreeIntersectionCallback::_didHit
private

Definition at line 144 of file DynamicTree.cpp.

Referenced by didHit(), and operator()().

◆ _phaseShift

PhaseShift const& DynamicTreeIntersectionCallback::_phaseShift
private

Definition at line 145 of file DynamicTree.cpp.

Referenced by operator()().


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