Ejemplo n.º 1
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);
            }
        }