文档

Unity Engine

Unity Engine

GetClosestPoint(Vector3)

Return the point on the articulation body that is closest to a given one.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
public Vector3 GetClosestPoint(Vector3 point)

Parameters

point

The point of interest.

Returns

Type

Description

Vector3The point on the surfaces of all Colliders attached to this articulation body that is closest to the given one.

Remarks

This returns the input point in case it was not possible to calculate the actual closest point for some reason.