Skip to main content

CapsuleCollider.ClosestPointOnBounds(Vector3 position)

The closest point to the bounding box of the attached collider.

Parameters:

NameTypeDescription
positionVector3

Returns:

typeDescription
Vector3closest point to the bounding box of the attached collider.

Usage

---@type CapsuleCollider
local capsulecollider;

---@type Vector3
local position;


local val0 = capsulecollider.ClosestPointOnBounds(position)