Cocos2d: carom like game
Posted
by
Raj
on Game Development
See other posts from Game Development
or by Raj
Published on 2011-11-28T11:54:35Z
Indexed on
2011/11/28
18:56 UTC
Read the original article
Hit count: 239
box2d
|cocos2d-iphone
Now I am working on carrom like game using cocos2d+Box2d. I set world gravity(0,0), want gravity in z - axis.
I set following value for coin striker body:
Coin body: density = 20.0f; friction = 0.4f; restitution = 0.6f; Shape Circle with radius - 15/PTM_RATIO
Striker body: density = 25.0f; friction = 0.6f; restitution = 0.3f; Shape Circle with radius - 15/PTM_RATIO
Output is not smooth, when I apply ApplyLinearImpulse(force,position);
Coin movement looks like floating in air....takes too much time to stop...
Which value of coin and striker makes it look like real carom?
© Game Development or respective owner