Hi,
I'm using Box2d with cocos2d-X (not sure that makes any difference, though)
I'm creating all my own bodies from a plist file using my own code.
I have a long chain body as my terrain floor.
I have noticed that some bodies with fixtures that have acute angles, when those points hit the chain, they bounce violently.
I tried reproducing this in the TestBed but, using as far as I can see, the same values for the objects, it all works good as gold.
I've debugged 'til my eyes bleed!
I've posted a youtube video of the problem in action in my program
In the 8 second video you will see a 'sign' standing on the right as the player approaches. The player shoots the sign - which falls over, and bounces wildly off!
https://www.youtube.com/watch?v=irsv_OmdXVo
I'm posting this question in the hope that someone has seen this behaviour before and will say "Ahh - did you check X?" and it'll be fixed - because I'm stumped!
Obviously(!) it's something I am doing wrong - but I just can't figure it out!
Any help or suggestions will be gratefully received!
I'm using Box2d with cocos2d-X (not sure that makes any difference, though)
I'm creating all my own bodies from a plist file using my own code.
I have a long chain body as my terrain floor.
I have noticed that some bodies with fixtures that have acute angles, when those points hit the chain, they bounce violently.
I tried reproducing this in the TestBed but, using as far as I can see, the same values for the objects, it all works good as gold.
I've debugged 'til my eyes bleed!
I've posted a youtube video of the problem in action in my program
In the 8 second video you will see a 'sign' standing on the right as the player approaches. The player shoots the sign - which falls over, and bounces wildly off!
https://www.youtube.com/watch?v=irsv_OmdXVo
I'm posting this question in the hope that someone has seen this behaviour before and will say "Ahh - did you check X?" and it'll be fixed - because I'm stumped!
Obviously(!) it's something I am doing wrong - but I just can't figure it out!
Any help or suggestions will be gratefully received!