private void OnTriggerEnter(Collider other)
{
if (other != null)
{
Debug.Log(other.name);
_closestPoint = other.bounds.ClosestPoint(transform.position);
Debug.Log(_closestPoint );
}
}
Unityの衝突位置取得方法
おすすめ
転載: blog.csdn.net/dj1232090/article/details/128898555
ランキング