Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
            }
        }