Odd behavior for dynamic objects - sliding ignoring friction
Posted: Thu Jan 29, 2015 3:12 pm
Hello everyone,
I am using bullet in a first person iOS game and I am using a capsule shaped body with angular factors to 0 to simulate the player. Controls are forcing various velocity values on frame and everything is nice and dandy most of the times. On some occasions (1 out of 10) when I start the game the character is sliding really bad, like he would have 0 friction and very low damping on any other surface. I've tried setting the friction property every frame but in that specific case it's not having any impact. It just feels like there is a huge inertia attached to the body. The world is simulated with a fixed step at 1/23 fps but considering it's working just fine most of the time I suppose it's something a bit deeper which triggers this behavior. The object's mass is 850 units, I am trying to see if it has any impact on this issue right now but I would expect it to reproduce all the time if it was from the mass.
Any tips will be greatly appreciated.
Thanks.
I am using bullet in a first person iOS game and I am using a capsule shaped body with angular factors to 0 to simulate the player. Controls are forcing various velocity values on frame and everything is nice and dandy most of the times. On some occasions (1 out of 10) when I start the game the character is sliding really bad, like he would have 0 friction and very low damping on any other surface. I've tried setting the friction property every frame but in that specific case it's not having any impact. It just feels like there is a huge inertia attached to the body. The world is simulated with a fixed step at 1/23 fps but considering it's working just fine most of the time I suppose it's something a bit deeper which triggers this behavior. The object's mass is 850 units, I am trying to see if it has any impact on this issue right now but I would expect it to reproduce all the time if it was from the mass.
Any tips will be greatly appreciated.
Thanks.