Adding my level to a shapegroup disables character collision

jchmack

19-02-2008 23:44:52

once i add ANYTHING to a shapegroup the characters no longer collide with them...


mShapeParams.setToDefault();
mShapeParams.mGroupAsName = "Level"; // adding this disables collisions with characters.......

mBody = mScene->createBody(Map, new TriangleMeshShape(Map,mShapeParams), Vector3(0,0,0), mActorParams);



//mShapeParams.mGroupAsName = "Kinematics"; //enabling this disables collsions with characters.....
mActorParams.mGroupAsName = "Kinematics";
mBody = mScene->createBody("RockPillar.mesh", new ConvexShape("RockPillar.mesh",mShapeParams), NxOgre::Pose(InitialPosition+KinematicOffset,InitialDirection), mActorParams);
mBody->raiseBodyFlag(NX_BF_KINEMATIC);