private void MarkModules(Vector3D pos, float radius)
        {
            MySphereDensityFunction func = new MySphereDensityFunction(pos, radius * MyProceduralPlanetCellGenerator.GRAVITY_SIZE_MULTIPLIER + MyProceduralPlanetCellGenerator.FALLOFF, MyProceduralPlanetCellGenerator.FALLOFF);

            foreach (var module in m_modules)
            {
                module.AddDensityFunctionRemoved(func);
            }
        }
        public void MarkEmptyArea(Vector3D pos)
        {
            MySphereDensityFunction func = new MySphereDensityFunction(pos, m_planetsModule.PLANET_SIZE_MAX / 2.0 * MyProceduralPlanetCellGenerator.GRAVITY_SIZE_MULTIPLIER + MyProceduralPlanetCellGenerator.FALLOFF, MyProceduralPlanetCellGenerator.FALLOFF);

            foreach (var module in m_modules)
            {
                module.AddDensityFunctionRemoved(func);
            }
        }
示例#3
0
        public void MarkEmptyArea(Vector3D pos)
        {
            MySphereDensityFunction func = new MySphereDensityFunction(pos, MyProceduralPlanetCellGenerator.OBJECT_SEED_RADIUS, MyProceduralPlanetCellGenerator.OBJECT_SEED_RADIUS);

            foreach (var module in m_modules)
            {
                module.AddDensityFunctionRemoved(func);
            }
        }
 public void MarkEmptyArea(Vector3D pos)
 {
     MySphereDensityFunction func = new MySphereDensityFunction(pos, m_planetsModule.PLANET_SIZE_MAX / 2.0 * MyProceduralPlanetCellGenerator.GRAVITY_SIZE_MULTIPLIER + MyProceduralPlanetCellGenerator.FALLOFF, MyProceduralPlanetCellGenerator.FALLOFF);
     foreach (var module in m_modules)
     {
         module.AddDensityFunctionRemoved(func);
     }
 }
 private void MarkModules(Vector3D pos, float radius)
 {
     MySphereDensityFunction func = new MySphereDensityFunction(pos, radius * MyProceduralPlanetCellGenerator.GRAVITY_SIZE_MULTIPLIER + MyProceduralPlanetCellGenerator.FALLOFF, MyProceduralPlanetCellGenerator.FALLOFF);
     foreach (var module in m_modules)
     {
         module.AddDensityFunctionRemoved(func);
     }
 }
 public void MarkEmptyArea(Vector3D pos)
 {
     MySphereDensityFunction func = new MySphereDensityFunction(pos, MyProceduralPlanetCellGenerator.OBJECT_SEED_RADIUS, MyProceduralPlanetCellGenerator.OBJECT_SEED_RADIUS);
     foreach(var module in m_modules)
     {
         module.AddDensityFunctionRemoved(func);
     }
 }