Bullet physics, friction?
Posted: Fri Dec 31, 2010 6:32 pm
Since there are a lot of Bullet users here too, I'll ask for your opinions as well. This was also posted at the Bullet forum some days ago, no replies so far though.
I'm not using any of the irrlicht-bullet wrappers. You might recognize the screenshot
I have some terrain fed to bullet as triangles, and I drop a character on a hill there.
The character is represented as a capsule. His mass was originally 80kg, but setting it to 1kg had no effect.
I'm on bullet 2.77.
Collisions work, but I have an issue with friction.
When I drop the character there, he slides down the hill! It's like the hill was made of
ice, and he had well oiled boots.

So I then tried setting the friction, first for the ground only and then for both. No matter
what values I used, be it 0.5, 1 or 1000, ground only or both, it had no effect (bug?).
With friction useless, I read around, and it was said to use dampening to simulate friction.
However, linear dampening caused him to fall in slow motion (=useless), and to get proper
friction I had to use really high values for angular dampening, 0.9 to 1.
Of course, with such high values, I can't move him myself without huge forces (on the
order of 10k).
Please enlighten a bullet newbie, how can I get proper friction /and/ be able to move my
chars?
PS: I did notice that if I set linear velocity, I can get him to move how I want, but
setting that would ignore all forces from collisions, am I right?
I'm not using any of the irrlicht-bullet wrappers. You might recognize the screenshot

I have some terrain fed to bullet as triangles, and I drop a character on a hill there.
The character is represented as a capsule. His mass was originally 80kg, but setting it to 1kg had no effect.
I'm on bullet 2.77.
Collisions work, but I have an issue with friction.
When I drop the character there, he slides down the hill! It's like the hill was made of
ice, and he had well oiled boots.

So I then tried setting the friction, first for the ground only and then for both. No matter
what values I used, be it 0.5, 1 or 1000, ground only or both, it had no effect (bug?).
With friction useless, I read around, and it was said to use dampening to simulate friction.
However, linear dampening caused him to fall in slow motion (=useless), and to get proper
friction I had to use really high values for angular dampening, 0.9 to 1.
Of course, with such high values, I can't move him myself without huge forces (on the
order of 10k).
Please enlighten a bullet newbie, how can I get proper friction /and/ be able to move my
chars?
PS: I did notice that if I set linear velocity, I can get him to move how I want, but
setting that would ignore all forces from collisions, am I right?