About Store Forum Documentation Contact



Post Reply 
Terrain from the .world
Author Message
katoun Offline
Member

Post: #1
Terrain from the .world
Hello,
How can I access the terrain from a world created in the world editor in the same way the items and charaters are accessed:
Quote:Game::ObjMemx<Game::Static> Statics; // container for static objects
Game::ObjMemx<Game::Chr> Players; // container for players

Bool InitGame()
{
// create the world
Game::World.init();
Game::World.setObjType(Statics, OBJ_STATIC);
Game::World.setObjType(Players, OBJ_PLAYER);
Game::World.New("World/sample.world");
...
Thank you.
And how could I get the bounding box of that terrain...
I am trying to put trees on the terrain from an .world
(This post was last modified: 11-17-2009 12:20 AM by katoun.)
11-17-2009 12:09 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #2
RE: Terrain from the .world
you need to use physics collision detection or access Game::Area::Data
11-17-2009 12:25 AM
Find all posts by this user Quote this message in a reply
katoun Offline
Member

Post: #3
RE: Terrain from the .world
So I can use:
Quote:Grid<Area>* WorldManager::areaActive(VecI2 &xz);
and
Quote:MeshGroup& Area::Data::mshg();
Well how can I get how many Game::Areas are in the World and from what values?

Thank you.
Or It should be nice to create trees on the terrain from the WorldEditor as easy as the grass grin
(This post was last modified: 11-17-2009 12:53 PM by katoun.)
11-17-2009 12:03 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #4
RE: Terrain from the .world
you need to check file names in world\game\area folder
11-17-2009 02:37 PM
Find all posts by this user Quote this message in a reply
Post Reply