getNearestPoint

fun AABB.getNearestPoint(from: Position): Vec3

Get the nearest point of a box. Very useful to calculate the distance of an enemy.