mamairaja
18-05-2010 17:31:31
Hello
I set friction to nxogre::Scene as following
I am creating a scenegeometry using traingle mesh as following. It is a floor.
For this flour I need to apply a separate friction value. But I do not know how.
Please help me
Thank you
I set friction to nxogre::Scene as following
mScene->getMaterial(0)->setStaticFriction(0.5);
mScene->getMaterial(0)->setDynamicFriction(0.5);
I am creating a scenegeometry using traingle mesh as following. It is a floor.
NxOgre::Mesh* floorNxs = NxOgre::MeshManager::getSingleton()->load("media:FLOOR.nxs");
NxOgre::TriangleGeometry* floorGeometry = new NxOgre::TriangleGeometry(floorNxs);
mScene->createSceneGeometry(floorGeometry , NxOgre::Matrix44(NxOgre::Vec3(*iterator)));
For this flour I need to apply a separate friction value. But I do not know how.
Please help me
Thank you