private void OnTriggerEnter(Collider other)
{
if (other != null)
{
Debug.Log(other.name);
_closestPoint = other.bounds.ClosestPoint(transform.position);
Debug.Log(_closestPoint );
}
}
Unity获取碰撞位置的方法
最新推荐文章于 2024-07-04 10:10:29 发布