At the point where the ray collides, you can retrieve the distance between your object and the collision point by doing:
yourCollisionEntry.getSurfacePoint(yourObject).lengthSquared()
At the point where the ray collides, you can retrieve the distance between your object and the collision point by doing:
yourCollisionEntry.getSurfacePoint(yourObject).lengthSquared()