Raúl
Moderator
 Moderator
| Posts: 591 |  | Karma: 10
|
Problem loading a terrain - 2009/11/20 19:51
Received by email:
Hello Raul, I am working on robotics studio.I am doing a simulation for path planning for a autonomous mars rover.I have successfully created a robot and the ground in MRDS. I am facing a problem in loading a terrain. It will be really great if you could suggest me something. Code HeightFieldEntity ground = new HeightFieldEntity( "Ground", // name "earth.bmp", // texture image new MaterialProperties("ground", 0.2f, // restitution 0.5f, // dynamic friction 0.5f) // static friction ); SimulationEngine.GlobalInstancePort.Insert(ground); till this it works fine. TerrainEntity terrain = new TerrainEntity( "terrain.bmp", "terrain_tex.jpg", new MaterialProperties("terrain", 0.2f, 0.5f, 0.5f));
SimulationEngine.GlobalInstancePort.Insert(terrain);
Post edited by: Raúl, at: 2009/11/20 19:51
Raúl Arrabales Moreno. conscious-robots.com/raul |