get ray hit distance to the controller?

how can i get the distance between ray hit position to the controller?

distance = own.getDistanceTo(ray.hitPosition)

thanks caarlo697 :slight_smile: