标签:lis bsp summary engine logs mon star object collision
using UnityEngine; using System.Collections; /// <summary> /// 忽略模型本身之间的碰撞 /// </summary> public class IgnoreInternalCollisions : MonoBehaviour { void Start () { Collider[] colliders = gameObject.GetComponentsInChildren<Collider>(); for (int i = 0; i < colliders.Length; ++i) for (int j = i + 1; j < colliders.Length; ++j) Physics.IgnoreCollision(colliders[i], colliders[j]); } }
标签:lis bsp summary engine logs mon star object collision
原文地址:http://www.cnblogs.com/dsh20134584/p/7723669.html