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

Public Member Functions

 NNInfo (GraphNode node)
 
void SetConstrained (GraphNode constrainedNode, Vector3 clampedPosition)
 Sets the constrained node.
 
void UpdateInfo ()
 Updates clampedPosition and constClampedPosition from node positions.
 

Static Public Member Functions

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

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

NNInfo ( GraphNode  node)

Member Function Documentation

static operator GraphNode ( NNInfo  ob)
explicitstatic
static operator NNInfo ( GraphNode  ob)
explicitstatic
static operator Vector3 ( NNInfo  ob)
explicitstatic
void SetConstrained ( GraphNode  constrainedNode,
Vector3  clampedPosition 
)

Sets the constrained node.

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: