Character sliding down gentle slope
-
- Posts: 2
- Joined: Wed Nov 14, 2012 2:48 am
Character sliding down gentle slope
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.
-
- Posts: 31
- Joined: Tue Apr 26, 2011 5:52 pm
Re: Character sliding down gentle slope
Applying a friction should do it. But make sure you set the friction to both the capsule shape and the slope shape.
-
- Posts: 2
- Joined: Wed Nov 14, 2012 2:48 am
Re: Character sliding down gentle slope
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.
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.