Rigidbody.ClosestPointOnBounds

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

Rigidbody.ClosestPointOnBounds

Properties

Property Name Description
Rigidbody Rigidbody
Position Position to calculate the closest point
Result Output result