AnsweredAssumed Answered

Find transform to make solid bodies just touch

Question asked by Brad Phelan on Mar 4, 2016
Latest reply on Mar 7, 2016 by Brad Phelan

If I have two solid bodies


IBody2 body0;

IBody2 body1;


and a vector for a direction


IMathVector 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.