Waris Ali
Waris Ali

Reputation: 522

Animation and Collision detection using Cocos2D/Box2d - iPhone

I am developing an iphone game using cocos2d and box2d. I use cococ2d to animate a sprite (using series of png). In box2D I make a body and

Problem: The collision seems very unrealistic as the animated sprite is concave in shape and the box that I had made in box2D doesnt in any way meet the dimensions of the animated sprite.

I have tried vertex helper to make the b2Body a particular shape but after much efforts found out that concave shaped cannot be made using vertices.

Any help on this problem please?

Upvotes: 0

Views: 1159

Answers (2)

Kuberchaun
Kuberchaun

Reputation: 30324

Save yourself a ton of time and check these out. You will be amazed how easy it is to get really cool physics working.

http://www.spritehelper.org/

http://www.physicseditor.de/features/

Upvotes: 0

Andrew
Andrew

Reputation: 24846

Try using multiply shapes per one body for better approximation

Upvotes: 1

Related Questions