So I would like to make a sensor in unity to get th distance between the sensor and the nearest obstacle.
I know the function to get the distance between two object but it gets it between the center of these two objects and not to the nearest surface in a straight line.
Is there a build in function to do that ?
and if not how would you do it ?
thanks for the time it took you to answer :),