ProtoZoo
02-02-2007 21:54:18
Hi there!
I've got a problem with bodies and their attached entities. After some problems getting NxOgre working, I tried to display some debug information. The debug lines are only visible after each 10th compilation - but thats not the worst problem. I saw that the collision mesh fall down in terms of gravity, but the mesh/entity that should represent the body stays on its initial position.
I possibly know the reason - I've worked with PhysX for a long time now - but can't really fix it using NxOgre. My code for creating the body is:
I've really no clue what to do now!
Thanks for your help!
I've got a problem with bodies and their attached entities. After some problems getting NxOgre working, I tried to display some debug information. The debug lines are only visible after each 10th compilation - but thats not the worst problem. I saw that the collision mesh fall down in terms of gravity, but the mesh/entity that should represent the body stays on its initial position.
I possibly know the reason - I've worked with PhysX for a long time now - but can't really fix it using NxOgre. My code for creating the body is:
nxOgre::params<nxOgre::rigidbody> params;
params.mNode = Node->getName();
params.mShadows= true;
nxOgre::body *body= this->mScene->createBody(Ogre::String(BigBlack::xmlGetString(Desc, "name")+ "BODY"), file, new nxOgre::meshShape(file, this->mScene), 10.0, params);
// TODO: set body attributes
body->wakeUp();
body->unFreezeAll();
I've really no clue what to do now!
Thanks for your help!