Function TriangleMeshNode.ClosestPointOnNodeXZ

ClosestPointOnNodeXZ (Vector3 p)

Closest point on the surface of this node when seen from above.

Public
Vector3 ClosestPointOnNodeXZ (

Vector3

p

)

Closest point on the surface of this node when seen from above.

This is usually very similar to ClosestPointOnNode but when the node is in a slope this can be significantly different. When the blue point in the above image is used as an argument this method call will return the green point while the ClosestPointOnNode method will return the red point.