I want to get the exact point 0 of the distance between two points without tolerance using Unity.
Update as well as FixedUpdate skip that point unless I'm implementing a tolerance value. I want to avoid that and really get the exact point. Underneath is the code im using right now.
while (Mathf.Abs((destination - objY.position).x) >= unityDistanceTolerance)
{
DoStuff();
break;
}
I want to replace this ">=unityDistanceTolerance" with "==0". Rightnow when I'm doing this, the loop never stops, the distance is never 0. Is this wish even possible? And if so, how?