/// <summary> /// Create a proxy with an initial AABB. Pairs are not reported until /// UpdatePairs is called. /// </summary> /// <param name="proxy">The user data.</param> /// <returns></returns> public int AddProxy(ref AABB aabb) { int proxyId = _tree.AddProxy(ref aabb); ++_proxyCount; BufferMove(proxyId); return(proxyId); }
/// <summary> /// Create a proxy with an initial AABB. Pairs are not reported until /// UpdatePairs is called. /// </summary> /// <param name="proxy">The user data.</param> /// <returns></returns> //public int AddProxy(ref AABB aabb) //{ // int proxyId = _tree.AddProxy(ref aabb); // ++_proxyCount; // BufferMove(proxyId); // return proxyId; //} public int AddProxy(ref TProxy proxy) { AABB aabb = proxy.AABB; int proxyId = _tree.AddProxy(ref aabb, proxy); ++_proxyCount; BufferMove(proxyId); //this.SetProxy(proxyId, ref proxy); return(proxyId); }