public List <MyVoxelBase> GetAllOverlappingWithSphere(ref BoundingSphereD sphere) { List <MyVoxelBase> voxels = new List <MyVoxelBase>(); MyGamePruningStructure.GetAllVoxelMapsInSphere(ref sphere, voxels); return(voxels); }
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); }
public void GetAllOverlappingWithSphere(ref BoundingSphereD sphere, List <MyVoxelBase> voxels) { MyGamePruningStructure.GetAllVoxelMapsInSphere(ref sphere, voxels); }