Version: 2021.3
言語: 日本語
public Vector3 GetClosestPoint (Vector3 point);

パラメーター

point The point of interest.

戻り値

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

説明

Return the point on the articulation body that is closest to a given one.

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