public void IntersectPoint(Vector3 point, WorkerCallback intersectCallback) { Balance(); MDLCallback callback = new MDLCallback(intersectCallback, m_objects.ToArray(), (uint)m_objects.Count); m_tree.IntersectPoint(point, callback); }
public void IntersectRay(Ray ray, WorkerCallback intersectCallback, ref float maxDist) { Balance(); MDLCallback temp_cb = new MDLCallback(intersectCallback, m_objects.ToArray(), (uint)m_objects.Count); m_tree.IntersectRay(ray, temp_cb, ref maxDist, true); }