boxedDistanceTo

fun Entity.boxedDistanceTo(entity: Entity): Double

Allows to calculate the distance between the current entity and entity from the nearest corner of the bounding box