I've seen this type of problem before, but didn't knew what is the solution. I've added this triangle to a b2Body Object(the body variable below) and the collision detection isn't working for it. The shapes just go through each other, I can't post the entire code cause it's quite large.
polyDef.vertexCount = 3;
polyDef.vertices[0].Set( 1, 2);
polyDef.vertices[1].Set(1, 1);
polyDef.vertices[2].Set(-9, 1);
body.CreateShape(polyDef);
.vertices[1].Set(-9, 1);
and.vertices[2].Set(1, 1);
- JiminP