Mf_Gh
14-03-2007 09:17:04
Hello!
my Programm crashs when i use TreeCollison from my Terrain SceneManager
and i get this Error
"10:12:43: OGRE EXCEPTION(2:InvalidParametersException): Object index out of bounds. in SceneNode::getAttachedObject at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreSceneNode.cpp (line 159)"
my Programm crashs when i use TreeCollison from my Terrain SceneManager
SceneNode *ter;
ter=mterrain->getTerrainRootNode();
OgreNewt::Collision *terraincoll=new OgreNewt::CollisionPrimitives::TreeCollision(mWorld,ter,true);
OgreNewt::Body *terrain=new OgreNewt::Body(mWorld,terraincoll);
delete terraincoll;
terrain->attachToNode(mterrain->getTerrainRootNode());
and i get this Error
"10:12:43: OGRE EXCEPTION(2:InvalidParametersException): Object index out of bounds. in SceneNode::getAttachedObject at C:\SoftwareDevelopment\C++\MinGW\ogrenew_HEAD_clean\OgreMain\src\OgreSceneNode.cpp (line 159)"