TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dtRaycastHit Struct Reference

#include <DetourNavMeshQuery.h>

Public Attributes

float t
 The hit parameter. (FLT_MAX if no wall hit.) More...
 
float hitNormal [3]
 hitNormal The normal of the nearest wall hit. [(x, y, z)] More...
 
dtPolyRefpath
 Pointer to an array of reference ids of the visited polygons. [opt]. More...
 
int pathCount
 The number of visited polygons. [opt]. More...
 
int maxPath
 The maximum number of polygons the path array can hold. More...
 
float pathCost
 The cost of the path until hit. More...
 

Detailed Description

Provides information about raycast hit filled by dtNavMeshQuery::raycast

Member Data Documentation

float dtRaycastHit::hitNormal[3]

hitNormal The normal of the nearest wall hit. [(x, y, z)]

int dtRaycastHit::maxPath

The maximum number of polygons the path array can hold.

dtPolyRef* dtRaycastHit::path

Pointer to an array of reference ids of the visited polygons. [opt].

float dtRaycastHit::pathCost

The cost of the path until hit.

int dtRaycastHit::pathCount

The number of visited polygons. [opt].

float dtRaycastHit::t

The hit parameter. (FLT_MAX if no wall hit.)


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