ClosestPoint
The closest point on the bounding box.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
ClosestPoint(Vector3)
The closest point on the bounding box.
public readonly 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.
ClosestPoint(Vector3)
The closest point on the bounding box.
public readonly Vector3 ClosestPoint(in 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.