What if you have a box, and you have an .x model beneath the box. And then you want to meausure the distance between each corner of the box to the face of the .x model directly beneath?
like so:
http://hem.passagen.se/fredrik_n/bajsbrunn.jpg
As you might have guessed it's for calculating an angle.
I've tried to do it by simply adding four objects around the main box that goes down until there is a collision, and then calculate the angle from the height difference between each object, but it was too sluggish.
Release the farbror in you!