public void Initialize() { // Loading ODEPlugin cbt = new OdePlugin(); // Loading Zero Mesher imp = new ZeroMesherPlugin(); // Getting Physics Scene ps = cbt.GetScene("test"); // Initializing Physics Scene. ps.Initialise(imp.GetMesher(), null); float[] _heightmap = new float[256 * 256]; for (int i = 0; i < (256 * 256); i++) { _heightmap[i] = 21f; } ps.SetTerrain(_heightmap); }
public void Initialize() { // Loading ODEPlugin cbt = new OdePlugin(); // Loading Zero Mesher imp = new ZeroMesherPlugin(); // Getting Physics Scene ps = cbt.GetScene("test"); // Initializing Physics Scene. ps.Initialise(imp.GetMesher(),null); float[] _heightmap = new float[(int)Constants.RegionSize * (int)Constants.RegionSize]; for (int i = 0; i < ((int)Constants.RegionSize * (int)Constants.RegionSize); i++) { _heightmap[i] = 21f; } ps.SetTerrain(_heightmap); }
public void Initialize() { IConfigSource TopConfig = new IniConfigSource(); IConfig config = TopConfig.AddConfig("Startup"); config.Set("DecodedSculptMapPath","j2kDecodeCache"); // Loading ODEPlugin cbt = new OdePlugin(); // Loading Zero Mesher imp = new ZeroMesherPlugin(); // Getting Physics Scene ps = cbt.GetScene("test"); // Initializing Physics Scene. ps.Initialise(imp.GetMesher(TopConfig),null); float[] _heightmap = new float[(int)Constants.RegionSize * (int)Constants.RegionSize]; for (int i = 0; i < ((int)Constants.RegionSize * (int)Constants.RegionSize); i++) { _heightmap[i] = 21f; } ps.SetTerrain(_heightmap); }
public void Initialize() { IConfigSource TopConfig = new IniConfigSource(); IConfig config = TopConfig.AddConfig("Startup"); config.Set("DecodedSculptMapPath", "j2kDecodeCache"); // Loading ODEPlugin cbt = new OdePlugin(); // Loading Zero Mesher imp = new ZeroMesherPlugin(); // Getting Physics Scene ps = cbt.GetScene("test"); // Initializing Physics Scene. ps.Initialise(imp.GetMesher(TopConfig), null); float[] _heightmap = new float[(int)Constants.RegionSize * (int)Constants.RegionSize]; for (int i = 0; i < ((int)Constants.RegionSize * (int)Constants.RegionSize); i++) { _heightmap[i] = 21f; } ps.SetTerrain(_heightmap); }