ColorWolf
27-01-2007 08:44:02
Hi,
I'm trying to get all the entities out of an OSM file so I can do a treecollision with them using mogrenewt...However, the following code only gives me a runtime error. I'm no programming ace so I'm sure it's just something minor that I'm doing wrong but I'm out of ideas.
Thanks
I'm trying to get all the entities out of an OSM file so I can do a treecollision with them using mogrenewt...However, the following code only gives me a runtime error. I'm no programming ace so I'm sure it's just something minor that I'm doing wrong but I'm out of ideas.
foreach (DictionaryEntry it in loader.Entities)
{
Entity myent = (Entity)it.Value;
SceneNode myNode = mgr.RootSceneNode.CreateChildSceneNode("test");
myNode.AttachObject(myent);
}
Thanks