A* Pathfinding Project  4.1.7
The A* Pathfinding Project for Unity 3D
GraphHitInfo Struct Reference

Returned by graph ray- or linecasts containing info about the hit. More...

Detailed Description

Returned by graph ray- or linecasts containing info about the hit.

This will only be set up if something was hit.

Public Member Functions

 GraphHitInfo (Vector3 point)
 

Public Attributes

GraphNode node
 Node which contained the edge which was hit. More...
 
Vector3 origin
 Start of the line/ray. More...
 
Vector3 point
 Hit point. More...
 
Vector3 tangent
 Tangent of the edge which was hit. More...
 
Vector3 tangentOrigin
 Where the tangent starts. More...
 

Properties

float distance [get]
 Distance from origin to point. More...
 

Constructor & Destructor Documentation

◆ GraphHitInfo()

GraphHitInfo ( Vector3  point)

Member Data Documentation

◆ node

GraphNode node

Node which contained the edge which was hit.

◆ origin

Vector3 origin

Start of the line/ray.

◆ point

Vector3 point

Hit point.

◆ tangent

Vector3 tangent

Tangent of the edge which was hit.

◆ tangentOrigin

Vector3 tangentOrigin

Where the tangent starts.

tangentOrigin and tangent together actually describes the edge which was hit

Property Documentation

◆ distance

float distance
get

Distance from origin to point.


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