How can I find the distance of an object to another object?

Hello everyone.

I added a bounding box to an object. I want to draw a line starting from the surfaces of this bounding box and continuing until it hits another mesh and calculate the length of this line. How can I do that? Is there an example of this?

I want to do something like this

Here is an example that measures from point on face to another point on face.
You choose the points using your mouse.
Raycaster Measurements
image

3 Likes