# Finding smallest distance between two surfaces

**URL:** <https://forums.unrealengine.com/t/finding-smallest-distance-between-two-surfaces/411417>\
**Category:** World Creation\
**Tags:** distance, unreal-engine, question\
**Created:** [December 5, 2017, 2:06pm UTC](https://forums.unrealengine.com/t/finding-smallest-distance-between-two-surfaces/411417 "2017-12-05T14:06:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Veseliy](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/veseliy/32/600830_2.png) [@Veseliy](https://forums.unrealengine.com/u/Veseliy)\
**Post date:** [December 5, 2017, 2:06pm UTC](https://forums.unrealengine.com/t/finding-smallest-distance-between-two-surfaces/411417/1 "2017-12-05T14:06:05Z")

</div>

Hello,

I am trying to implement a funtion of finding the closest distance between two surfaces(objects).  
For example to measure a gap by selecting 2 objects and finding closest distance between them, or, ideally selecting 2 points on 2 objects and on this vector find the closest distance between objects.

I am not asking for a complete solution(although that would be really nice, hehe). But rather in which way should i look, or how would you implement such a function?

Any feedback appreciated!

Kind regards,

Alex.
