on my desktop machine (q6600 - Ubuntu 64bit ) the following code works fine
Code:
float r;
r=1.25;
polyDef.vertexCount = 6;
polyDef.friction = 0.1f;
polyDef.vertices[5].Set(0.866025404*r, 0.5*r);
polyDef.vertices[4].Set(0.866025404*r, -0.5*r);
polyDef.vertices[3].Set(0, -r);
polyDef.vertices[2].Set(-0.866025404*r, -0.5*r);
polyDef.vertices[1].Set(-0.866025404*r, 0.5*r);
polyDef.vertices[0].Set(0, r);
bodyDef.position.Set(24.f,2.0);
body=m_world->CreateBody(&bodyDef);
body->CreateShape(&polyDef);
body->SetMassFromShapes();
ents[13]=new entity(body);
body->SetUserData(ents[13]);
ents[13]->setTexture(texture[0]);
however on my eeePc (intel celeron M) it causes the following error
Quote:
oglsdlbox2d: Dynamics/Contacts/b2ContactSolver.cpp:103: b2ContactSolver::b2ContactSolver(const b2TimeStep&, b2Contact**, int32, b2StackAllocator*): Assertion `kEqualized > 1.19209290e-7F' failed.
In both cases I'm using the float variant of the library
(I've noticed some errors with the fixed version using the testbed on my desktop)
I'm using SVN revision 166
btw nice library, I like the idea of prototype (def) objects to save dozens of parameters in a single call, its nice and fast, and seems straight forward. Thanks!