ClosestPoint
7/14/25Less than 1 minute
Bounds.ClosestPoint(Vector3 point)
The closest point on the bounding box.
Parameters:
| Name | Type | Description |
|---|---|---|
| point | Vector3 | Arbitrary point. |
Returns:
| type | Description |
|---|---|
| Vector3 | The point on the bounding box or inside the bounding box. |
Usage
---@type Bounds
local bounds;
---@type Vector3
local point;
local val0 = bounds.ClosestPoint(point)
