Physics in carrom like game using cocos2d + Box2D

Posted by Raj on Game Development See other posts from Game Development or by Raj
Published on 2011-11-28T11:54:35Z Indexed on 2012/03/23 11:41 UTC
Read the original article Hit count: 366

Filed under:
|
|

I am working on carrom like game using cocos2d + Box2D. I set world gravity(0,0), want gravity in z-axis. I set following values for coin and striker body:

Coin body (circle with radius - 15/PTM_RATIO):

density = 20.0f;
friction = 0.4f;
restitution = 0.6f;

Striker body (circle with radius - 15/PTM_RATIO):

density = 25.0f;
friction = 0.6f;
restitution = 0.3f;

Output is not smooth. When I apply ApplyLinearImpulse(force,position) the coin movement looks like floating in the air - takes too much time to stop.

What values for coin and striker make it look like real carrom?

© Game Development or respective owner

Related posts about 2d-physics

Related posts about box2d