I'm trying to track down a bug, I receive this error when creating a distance joint between an object - specifically triangles and where the mouse is.
- Namely
I can create the joints fine for circles as well as squares, but for triangles unless they're large in dimensions - ALWAYS fails. I've tried changing the mass, of the objects - Everything else seems fine except that one thing...
BTW I'm creating the triangles in this way, although honestly this part seems fine to me
--
It's hard to explain what I mean but in this shot I've attached below - I can grab all the objects including the larger triangles however when I attempt to grab (I'm creating a distance joint) the smaller triangles - it crashes with that error
For the record I can grab very small squares and very small circles.

Any help with tracking this bug would be appreciated!
- Namely
Code:
Assertion failed: (kNormal > 1.19209290e-7F), function b2ContactSolver, file /Users/mario/Svn/Onedayitwillmake/_iphone/LittlePhysics/Classes/Box2D/b2ContactSolver.cpp, line 98.
I can create the joints fine for circles as well as squares, but for triangles unless they're large in dimensions - ALWAYS fails. I've tried changing the mass, of the objects - Everything else seems fine except that one thing...
BTW I'm creating the triangles in this way, although honestly this part seems fine to me
Code:
radius = 0.55f; // Will crash when I attempt to 'grab' by attaching to distance joint - only for triangles - everything else about it seems and reacts fine.
radius = 0.93f; // Works fine
// Lets make the points
b2Vec2 points[3];
points[0].Set(0, -radius);
points[1].Set(radius, 0);
points[2].Set(-radius, 0);
// Assign the points to a triangle
b2PolygonShape triangle;
triangle.Set(points, 3);
radius = 0.93f; // Works fine
// Lets make the points
b2Vec2 points[3];
points[0].Set(0, -radius);
points[1].Set(radius, 0);
points[2].Set(-radius, 0);
// Assign the points to a triangle
b2PolygonShape triangle;
triangle.Set(points, 3);
--
It's hard to explain what I mean but in this shot I've attached below - I can grab all the objects including the larger triangles however when I attempt to grab (I'm creating a distance joint) the smaller triangles - it crashes with that error
For the record I can grab very small squares and very small circles.

Any help with tracking this bug would be appreciated!