spe02001
16-11-2009 03:13:24
How to freeze the rotate of Ogre3DBody??(BloodyMess)
I have tried these code:
NxOgre::RigidBodyDescription enemyPhysicsDescription;
enemyPhysicsDescription.mMass = 70.0f;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationZ;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationX;
But I could't found "mBodyFlags".
I have tried these code:
NxOgre::RigidBodyDescription enemyPhysicsDescription;
enemyPhysicsDescription.mMass = 70.0f;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationZ;
enemyPhysicsDescription.mBodyFlags |= NxOgre::Enums::BodyFlags::BodyFlags_FreezeRotationX;
But I could't found "mBodyFlags".