A* Pathfinding Project  3.8.5
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
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.
 
Vector3 origin
 Start of the line/ray.
 
Vector3 point
 Hit point.
 
Vector3 tangent
 Tangent of the edge which was hit.
 
Vector3 tangentOrigin
 Where the tangent starts.
 

Properties

float distance [get]
 

Constructor & Destructor Documentation

GraphHitInfo ( Vector3  point)

Member Data Documentation

GraphNode node

Node which contained the edge which was hit.

Vector3 origin

Start of the line/ray.

Vector3 point

Hit point.

Vector3 tangent

Tangent of the edge which was hit.

Vector3 tangentOrigin

Where the tangent starts.

tangentOrigin and tangent together actually describes the edge which was hit

Property Documentation

float distance
get

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