Page 1 of 1

Character sliding down gentle slope

Posted: Wed Nov 14, 2012 2:56 am
by mustardballoon
Is a way to stop a btKinematicCharacterController with a btCapsule collision shape from sliding down a gentle slope. I have tried setting friction and it does not appear to have any effect.

Re: Character sliding down gentle slope

Posted: Thu Nov 15, 2012 5:54 am
by zarlox
Applying a friction should do it. But make sure you set the friction to both the capsule shape and the slope shape.

Re: Character sliding down gentle slope

Posted: Fri Nov 16, 2012 4:40 am
by mustardballoon
I've tried setting the friction on both the capsule and the slope to ridiculously high values and it doesn't seem to make any difference.

The character controller demo has a line:


that slows down the motion a lot, but it doesn't completely solve the issue. I also don't think it's right to do that anyway because that line applies a change to the entire world, not just my character controller.