Rigidbody.ClosestPointOnBounds

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

Rigidbody.ClosestPointOnBounds

Properties

Property NameDescription
Rigidbody Rigidbody
Position Position to calculate the closest point
Result Output result