public virtual void DestroyProxy(BroadphaseProxy proxy, IDispatcher dispatcher) { Handle handle = (Handle)proxy; if (m_raycastAccelerator != null) { m_raycastAccelerator.DestroyProxy(handle.m_dbvtProxy, dispatcher); } RemoveHandle((ushort)handle.GetUid(), dispatcher); }
public virtual void SetAabb(BroadphaseProxy proxy, ref IndexedVector3 aabbMin, ref IndexedVector3 aabbMax, IDispatcher dispatcher) { Handle handle = (Handle)proxy; handle.SetMinAABB(ref aabbMin); handle.SetMaxAABB(ref aabbMax); UpdateHandle((ushort)handle.GetUid(), ref aabbMin, ref aabbMax, dispatcher); if (m_raycastAccelerator != null) { m_raycastAccelerator.SetAabb(handle.m_dbvtProxy, ref aabbMin, ref aabbMax, dispatcher); } }