When creating a pool game for iOS I use box2d an so far it feels pretty realistic.
The problem is that the balls do not stop quickly enough after a shot, it almost looks like the "glide". So it takes way too long for the next turn.
I tried to change the friction but it does not change anything.
Here are my settings:
What to do here? Any suggestions?
The problem is that the balls do not stop quickly enough after a shot, it almost looks like the "glide". So it takes way too long for the next turn.
I tried to change the friction but it does not change anything.
Here are my settings:
Code: Select all
b2CircleShape circle;
circle.m_radius = radius / PTM_RATIO;
b2FixtureDef ballShapeDef;
ballShapeDef.shape = &circle;
ballShapeDef.density = 20.00f;
ballShapeDef.friction = 0.3f;
ballShapeDef.restitution = 1.0f;What to do here? Any suggestions?