Hi, I’d like to get the distance between an edge from one object & another objects translation matrix

Can this be done in python?

Hi, I’d like to get the distance between an edge from one object & another objects translation matrix

Can this be done in python?

how do you define ‘distance to an edge’? distance to the closest point on an edge? distance to one of the endpoints? distance to the center? once you have decided on that, you just use vector math and get the length of the resulting vector.

```
vecA = edge_position
vecB = matrix.translation
(vecB - vecA).length
```