ClosestPoint(Vector3)
The closest point on the bounding box.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
public Vector3 ClosestPoint(Vector3 point)
Parameters
Arbitrary point.
Returns
Type | Description |
|---|---|
| Vector3 | The point on the bounding box or inside the bounding box. |
Remarks
If the point is inside the bounding box, unmodified point position will be returned.