기술 자료

Unity Engine

Unity Engine

ClosestPoint(Vector3)

The closest point on the bounding box.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public Vector3 ClosestPoint(Vector3 point)

Parameters

point

Arbitrary point.

Returns

Type

Description

Vector3The 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.