コード例 #1
0
        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);
            }
        }
コード例 #2
0
        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);
            }
        }
コード例 #4
0
 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);
     }
 }
コード例 #5
0
 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);
     }
 }
コード例 #6
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);
     }
 }