If I have two solid bodies
and a vector for a direction
How can I find the distance I have to move body1 along direction so that body1 and body2 are just touching.
Maybe there is an API function that returns the minimum distance between two bodies and I can use this to write a solver??
The use case is to try and mate a tool body against a surface by move the tool along a specific machine direction.