DistanceToPoint

This function returns the shortest distance between the point and the AABB.

Syntax

Parameters

Returns

Returns the shortest distance between the point and the AABB. If the point is inside the AABB, 0 will be returned.