Is friction able to make spheres stop moving? What does?

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:

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.

betajaen

06-05-2008 10:41:47

No your not crazy, but you are looking in the wrong direction.

The Spheres will eventually stop because they have a tiny amount of angular damping by default (I think it's about 0.02). But you can increase it via Actor->setAngularDamping(...); say to 0.5 and work from there.