Rolling friction.

sparkprime
Posts: 508
Joined: Fri May 30, 2008 2:51 am
Location: Ossining, New York

Re: Rolling friction.

Post by sparkprime »

If angular damping isn't damping "enough" then (apart from the fact that you see the velocities are reduced to 0) it sounds like this bug:

http://code.google.com/p/bullet/issues/detail?id=74

could you apply the patch and see if it starts doing what you expect?
gfm
Posts: 16
Joined: Tue Sep 09, 2008 8:56 am

Re: Rolling friction.

Post by gfm »

Hi sparkprime, thanks for the tip but unfortunately that doesn't work for me.

In my case I'm trying to set the damping on the ball to 1.0 to stop it from rolling completely. Even with the existing code in 2.7.1 the velocities are correctly set to (0,0,0) in applyDamping() but the ball mysteriously continues to roll.

That patch also sets the velocities to (0,0,0) and the ball still continues to roll--something is placing a force on that ball after applyDamping().
gfm
Posts: 16
Joined: Tue Sep 09, 2008 8:56 am

Re: Rolling friction.

Post by gfm »

Actually I just noticed if you setDamping(1,1) on an object in free fall, it will continue to fall at a constant speed as it is effected by gravity. This doesn't seem right to me.