toglia
06-05-2008 05:00:57
I know this seems very absurd, but no matter how much I tweak my friction values I cannot get some spheres to stop rolling by them selves (cause of the friction), although I noticed they have more grip with higher friction values.
this is how I create and apply my material:
Am I crazy, or am I missing something?
Thanks for any help.
this is how I create and apply my material:
mScene = mWorld->createScene("Main", mSceneMgr, "gravity: 0 -10 0, floor: yes");
NxOgre::Material * myMat = mScene->createMaterial("myMat");
myMat->setFrictionCombineMode(NX_CM_MIN);
myMat->setDynamicFriction(2);
myMat->setStaticFriction(2);
mScene->createBody("sphere.2m.mesh", new SphereShape(1,"material:myMat"), Vector3(0,5,0));
Am I crazy, or am I missing something?
Thanks for any help.