Skip to main content

Bounds.ClosestPoint(Vector3 point)

The closest point on the bounding box.

Parameters:

NameTypeDescription
pointVector3Arbitrary point.

Returns:

typeDescription
Vector3The point on the bounding box or inside the bounding box.

Usage

---@type Bounds
local bounds;

---@type Vector3
local point;


local val0 = bounds.ClosestPoint(point)