A* Pathfinding Project  4.0.7
The A* Pathfinding Project for Unity 3D
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Events Macros Groups Pages
NNInfoInternal Struct Reference

Internal result of a nearest node query. More...

Detailed Description

Internal result of a nearest node query.

See Also
NNInfo

Public Member Functions

 NNInfoInternal (GraphNode node)
 
void UpdateInfo ()
 Updates clampedPosition and constClampedPosition from node positions.
 

Public Attributes

Vector3 clampedPosition
 The position clamped to the closest point on the node.
 
Vector3 constClampedPosition
 Clamped position for the optional constrainedNode.
 
GraphNode constrainedNode
 Optional to be filled in.
 
GraphNode node
 Closest node found.
 

Constructor & Destructor Documentation

Member Function Documentation

void UpdateInfo ( )

Updates clampedPosition and constClampedPosition from node positions.

Member Data Documentation

Vector3 clampedPosition

The position clamped to the closest point on the node.

Vector3 constClampedPosition

Clamped position for the optional constrainedNode.

GraphNode constrainedNode

Optional to be filled in.

If the search will be able to find the constrained node without any extra effort it can fill it in.

GraphNode node

Closest node found.

This node is not necessarily accepted by any NNConstraint passed.

See Also
constrainedNode

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