Esempio n. 1
0
        public List <MyVoxelBase> GetAllOverlappingWithSphere(ref BoundingSphereD sphere)
        {
            List <MyVoxelBase> voxels = new List <MyVoxelBase>();

            MyGamePruningStructure.GetAllVoxelMapsInSphere(ref sphere, voxels);
            return(voxels);
        }
Esempio n. 2
0
        public MyVoxelBase GetOverlappingWithSphere(ref BoundingSphereD sphere)
        {
            MyVoxelBase ret = null;

            MyGamePruningStructure.GetAllVoxelMapsInSphere(ref sphere, m_tmpVoxelMapsList);
            foreach (var voxelMap in m_tmpVoxelMapsList)
            {
                if (voxelMap.DoOverlapSphereTest((float)sphere.Radius, sphere.Center))
                {
                    ret = voxelMap;
                    break;
                }
            }
            m_tmpVoxelMapsList.Clear();
            return(ret);
        }
Esempio n. 3
0
 public void GetAllOverlappingWithSphere(ref BoundingSphereD sphere, List <MyVoxelBase> voxels)
 {
     MyGamePruningStructure.GetAllVoxelMapsInSphere(ref sphere, voxels);
 }