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
今日推荐
周排行