ervilha
22-09-2007 04:30:23
Hi,
I'm using OgreNewt in my school project.
I'm trying to build a TreeCollision for a parent scenenode, that have all the scenenodes loaded by the DotSceneLoader class.
Just like Demo02, i'm using TreeCollisionSceneParse:
The result of this code, is that almost every nodes get their rigid body, but some of them doesn't.
As you can see, not all the trees and not all the houses get their rigid body.
I'm using OgreNewt in my school project.
I'm trying to build a TreeCollision for a parent scenenode, that have all the scenenodes loaded by the DotSceneLoader class.
Just like Demo02, i'm using TreeCollisionSceneParse:
CollisionPrimitives::TreeCollisionSceneParser* col = new CollisionPrimitives::TreeCollisionSceneParser(mWorld);
col->parseScene(dotSceneNode,true);
bodyDotSceneNode = new Body(mWorld,col,OUTROS);
delete col;
bodyDotSceneNode->attachToNode(dotSceneNode);
bodyDotSceneNode->setPositionOrientation(dotSceneNode->getPosition(),dotSceneNode->getOrientation());
The result of this code, is that almost every nodes get their rigid body, but some of them doesn't.
As you can see, not all the trees and not all the houses get their rigid body.