njw1985
20-06-2008 16:59:54
NxOgre::ShapeParams ss;
ss.setToDefault();
ss.mMeshScale.setx(10);
ss.mMeshScale.sety(10);
ss.mMeshScale.setz(10);
ss.mMass=10;
ss.mSkinWidth=5;
ss.mFlags |= NX_SF_VISUALIZATION;
bike = mScene->createBody("bike;bike.mesh",new NxOgre::CubeShape(3,0.05,6),pose, params_bike);
body_people=bike->addShape(new NxOgre::TriangleMeshShape("peopleb.mesh",ss));
////////////////////////////////////////////////////////////////////////
I set up bike in the ogre with nxogre of version 0.9,and I want to add a people on the bike use body function "addshape",but the result is the people can't display,what is the matter?
ss.setToDefault();
ss.mMeshScale.setx(10);
ss.mMeshScale.sety(10);
ss.mMeshScale.setz(10);
ss.mMass=10;
ss.mSkinWidth=5;
ss.mFlags |= NX_SF_VISUALIZATION;
bike = mScene->createBody("bike;bike.mesh",new NxOgre::CubeShape(3,0.05,6),pose, params_bike);
body_people=bike->addShape(new NxOgre::TriangleMeshShape("peopleb.mesh",ss));
////////////////////////////////////////////////////////////////////////
I set up bike in the ogre with nxogre of version 0.9,and I want to add a people on the bike use body function "addshape",but the result is the people can't display,what is the matter?