Sorry, I should have been more specific.
In the case of a native object, I shoot a ray and give it's coordinates (as distance equals object distance from camera) to the native formula which then return a float. This float is positive if the ray miss, or negative if ray hits.
Is this float reflecting distance; ray vs surface?