Function PathTracer.SquaredDistanceToNode

SquaredDistanceToNode (GraphNode node, Vector3 point, refBBTree.ProjectionParams projectionParams)

Calculates the squared distance from a point to the closest point on the node.

Public Static
float SquaredDistanceToNode (

GraphNode

node

The node to calculate the distance to

Vector3

point

The point to calculate the distance from. For navmesh/recast/grid graphs this point should be in graph space.

refBBTree.ProjectionParams

projectionParams

Parameters for the projection, if the node is a triangle mesh node. The projection should be based on the node's graph.

)

Calculates the squared distance from a point to the closest point on the node.