You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In VertexPath.cs, line 325: float t = (closestPoint - GetPoint(closestSegmentIndexA)).magnitude / closestSegmentLength;
will cause NaN while closestSegmentLength is zero at some time.
It should be like: float t = (closestPoint - GetPoint(closestSegmentIndexA)).magnitude / (closestSegmentLength + 1e-4f); or something else?
The text was updated successfully, but these errors were encountered:
In VertexPath.cs, line 325:
float t = (closestPoint - GetPoint(closestSegmentIndexA)).magnitude / closestSegmentLength;
will cause NaN while closestSegmentLength is zero at some time.
It should be like:
float t = (closestPoint - GetPoint(closestSegmentIndexA)).magnitude / (closestSegmentLength + 1e-4f);
or something else?The text was updated successfully, but these errors were encountered: