# Is it Possible to Measure Shortest Distance Between Meshes and Not the Distance Between Their Respective Pivot Points

I imagine it’s going to require some
complex functions to analyze meshes at
the polygon level to obtain the
shortest distance.

Nah.

• shoot a line trace from A to B → store the AB vector
• shoot a line trace from B to A → store the BA vector
• ensure you `Trace Complex`

The length of AB-BA is the distance.

But there’s also the chance I misunderstood the question. I was thinking this:

But you may want the other thing. The closest distance between any 2 screen pixels? Or any two verts?

Is it Possible to Measure Shortest Distance Between Meshes and Not the Distance Between Their Respective Pivot Points

I imagine it’s going to require some complex functions to analyze meshes at the polygon level to obtain the shortest distance.

Sorry for the delay getting back, got pulled off to work on another project.

Thanks, this looks like exactly what I need.

Do you think you can share the blueprint? Can’t seem to get it working.

Thanks again for the help.

The debug #2 is optional, ofc. Distance is just this:

Good luck!

I was waaaaaaay off. Thanks a bunch. Ironically, I got pulled off this project to create a blueprint walkthrough tutorial video for other members of the group. Our boss hired someone to train us in Unreal and he is absolutely terrible. I stopped attending the course and browsed the forums instead, but my coworkers stuck with the training and they are confused like crazy. I learned more in an hour going through posts like yours than I did in 12 hrs of classes.

Thanks for the awesome help!!!