gbisocoli
18-04-2014 03:47:21
I'm using NxOgre + Critter v1.7.0 BuggySwires
I've searched on NxOgre Tutorials, on PhysX tutorials, I've messed with BodyDescription (I read somewhere that setting Mass to zero, sets the body to Static, didn't work), here it is the code:
It should be simple but on bodyDescription I found nothing that sets the body to static, on mBody neither, help with this, please.
I've searched on NxOgre Tutorials, on PhysX tutorials, I've messed with BodyDescription (I read somewhere that setting Mass to zero, sets the body to Static, didn't work), here it is the code:
Goal::Goal()
{
Critter::BodyDescription bodyDescription;
bodyDescription.mName = "Goal";
mBody = InGame::Instance().getRenderSystem()->createBody( NxOgre::CapsuleDescription(0.6,2.44),
NxOgre::Vec3(1,1,1),
"Barrel.mesh",
bodyDescription );
mBody->getNode()->setScale( Ogre::Vector3(.1f,.5f,.1f) );
}
It should be simple but on bodyDescription I found nothing that sets the body to static, on mBody neither, help with this, please.