A* Pathfinding Project  4.2.5
The A* Pathfinding Project for Unity 3D
NNInfo Struct Reference

Result of a nearest node query. More...

Detailed Description

Result of a nearest node query.

Public Member Functions

 NNInfo (NNInfoInternal internalInfo)
 

Static Public Member Functions

static operator GraphNode (NNInfo ob)
 
static operator Vector3 (NNInfo ob)
 

Public Attributes

readonly GraphNode node
 Closest node. More...
 
readonly Vector3 position
 Closest point on the navmesh. More...
 

Properties

Vector3 clampedPosition [get]
 Closest point on the navmesh. More...
 

Constructor & Destructor Documentation

◆ NNInfo()

NNInfo ( NNInfoInternal  internalInfo)

Member Function Documentation

◆ operator GraphNode()

static operator GraphNode ( NNInfo  ob)
explicitstatic

◆ operator Vector3()

static operator Vector3 ( NNInfo  ob)
explicitstatic

Member Data Documentation

◆ node

readonly GraphNode node

Closest node.

◆ position

readonly Vector3 position

Closest point on the navmesh.

This is the query position clamped to the closest point on the node.

Property Documentation

◆ clampedPosition

Vector3 clampedPosition
get

Closest point on the navmesh.

Deprecated:
This field has been renamed to position

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