alienskull
09-11-2007 21:44:22
I'm not sure how to delete more than one body that is created from the same mesh.
Calling destroyBody requires a 'const NxString& name' and I'm not sure what to pass it. If I give it "myModel.mesh" then i can delete the first one but not any after that. So I thought I might have to pass it this:
but I'm still getting errors. Please help.
I'm not doing anything with batches.. this is for things that I have called createBody for multiple times using the same .mesh file such as:
Calling destroyBody requires a 'const NxString& name' and I'm not sure what to pass it. If I give it "myModel.mesh" then i can delete the first one but not any after that. So I thought I might have to pass it this:
nxBody->getName()
or thisnxBody->getNxActor()->getName()
but I'm still getting errors. Please help.
I'm not doing anything with batches.. this is for things that I have called createBody for multiple times using the same .mesh file such as:
mPhysicsScene->createBody( meshFileName, new NxOgre::ConvexShape( meshFileName ), Ogre::Vector3::ZERO, ap);