Recast Navigation
Navigation-mesh Toolset for Games
Loading...
Searching...
No Matches
dtRaycastHit Struct Reference

Provides information about raycast hit filled by dtNavMeshQuery::raycast. More...

#include <DetourNavMeshQuery.h>

Public Attributes

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

Description

Provides information about raycast hit filled by dtNavMeshQuery::raycast.

Member Data Documentation

◆ hitEdgeIndex

int dtRaycastHit::hitEdgeIndex

The index of the edge on the final polygon where the wall was hit.

◆ hitNormal

float dtRaycastHit::hitNormal[3]

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

◆ maxPath

int dtRaycastHit::maxPath

The maximum number of polygons the path array can hold.

◆ path

dtPolyRef* dtRaycastHit::path

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

◆ pathCost

float dtRaycastHit::pathCost

The cost of the path until hit.

◆ pathCount

int dtRaycastHit::pathCount

The number of visited polygons. [opt].

◆ t

float dtRaycastHit::t

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


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