How to calculate the distance between a Vector3 and a (3D polygon triangle)?
for example : " float DistanceToTrianale( Vector3 pos, Vector3 Edges1, Vector3 Edges2, Vector3 Edges3)
thanks in advance
How to calculate the distance between a Vector3 and a (3D polygon triangle)?
for example : " float DistanceToTrianale( Vector3 pos, Vector3 Edges1, Vector3 Edges2, Vector3 Edges3)
thanks in advance
Here is a nice guide to the problem, with implementation:
http://www.geometrictools.com/Documentation/DistancePoint3Triangle3.pdf