I am making a platformer game, and I want to add a b2Body to my player which is a CCArmature. I have tried some codes and looked at some samples like in testcpp. And i have tried this code like in testcpp but my game crashes. Can someone mayby help me out?
Code i using in createPlayerBody method.
bodyDef.type = b2_dynamicBody;
b2Body body = world~~>CreateBody;
and i am getting this error when i run my game
Expression: edge.LengthSquared > 1.192092896e-07F 1.192092896e-07F
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts