I'm using an invisible btCapsuleShape to represent my player object in my world and in order to prevent the capsule from sticking to walls when in the air and jittering when moving along a wall, I've found I had to set the capsule's friction to zero. This works really well.
However, I now can't figure out how I'm going to implement slopes on my maps. It seems to me that since the capsule has a friction of zero, the capsule is going to gradually slide down even the most gentle slopes when the character stands still on a slope.
Is there any way to prevent gravity pulling my player object down a slope unless the slope is steeper than a certain gradient?
1 post • Page 1 of 1