ClosestPointOnNode() public abstract method

public abstract ClosestPointOnNode ( Vector3 p ) : Vector3
p Vector3
return Vector3
Exemplo n.º 1
0
		static bool NodeIntersectsCircle (MeshNode node, Vector3 p, float radius) {

			if (float.IsPositiveInfinity(radius)) return true;

			/** \bug Is not correct on the Y axis */
			return (p - node.ClosestPointOnNode (p)).sqrMagnitude < radius*radius;
		}