Character sliding down gentle slope

Post Reply
mustardballoon
Posts: 2
Joined: Wed Nov 14, 2012 2:48 am

Character sliding down gentle slope

Post 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.
zarlox
Posts: 31
Joined: Tue Apr 26, 2011 5:52 pm

Re: Character sliding down gentle slope

Post by zarlox »

Applying a friction should do it. But make sure you set the friction to both the capsule shape and the slope shape.
mustardballoon
Posts: 2
Joined: Wed Nov 14, 2012 2:48 am

Re: Character sliding down gentle slope

Post 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:

m_dynamicsWorld->getDispatchInfo().m_allowedCcdPenetration=0.0001f;

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.
Post Reply