Distance to point

Explanation
This function is used to get the distance from the current object's bounding box to the object specified. There is a modified version of it called. If multiple instances with the same object id exist, the function will choose the object whose id is the least.