Skip to content

Instantly share code, notes, and snippets.

@mgerhardy
Created March 21, 2021 12:43
Show Gist options
  • Save mgerhardy/c6209bf5f66e79c51cec05305d4267dc to your computer and use it in GitHub Desktop.
Save mgerhardy/c6209bf5f66e79c51cec05305d4267dc to your computer and use it in GitHub Desktop.
box 2d world dump with revolute joint problem
b2Vec2 g(0, 9.81000042);
m_world->SetGravity(g);
b2Body** bodies = (b2Body**)b2Alloc(101 * sizeof(b2Body*));
b2Joint** joints = (b2Joint**)b2Alloc(1 * sizeof(b2Joint*));
{
b2BodyDef bd;
bd.type = b2BodyType(2);
bd.position.Set(6.46999979, 3.2349999);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(2);
bd.fixedRotation = bool(0);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 0.300000012;
bodies[0] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.469999999, -0.435000002);
vs[1].Set(0.234999999, 0.435000002);
vs[2].Set(-0.234999999, 0.435000002);
vs[3].Set(-0.469999999, -0.435000002);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[0]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(2);
bd.position.Set(6.46999979, 3.2349999);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(2);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 0.300000012;
bodies[1] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(1);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2CircleShape shape;
shape.m_radius = 0.00999999978;
shape.m_p.Set(0, 0);
fd.shape = &shape;
bodies[1]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(2);
bd.position.Set(6.39999962, 4.78500223);
bd.angle = 7.94099549e-07;
bd.linearVelocity.Set(-8.47710524e-09, 4.47034765e-09);
bd.angularVelocity = -4.08537062e-08;
bd.linearDamping = 3;
bd.angularDamping = 1;
bd.allowSleep = bool(4);
bd.awake = bool(2);
bd.fixedRotation = bool(0);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[2] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 500;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.200000003, -0.200000003);
vs[1].Set(0.200000003, -0.200000003);
vs[2].Set(0.200000003, 0.200000003);
vs[3].Set(-0.200000003, 0.200000003);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[2]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(1);
bd.position.Set(9, 2);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[3] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.400000006;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -0.0149999997);
vs[1].Set(1, -0.0149999997);
vs[2].Set(1, 0.0149999997);
vs[3].Set(-1, 0.0149999997);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[3]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(1);
bd.position.Set(5, 5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[4] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.400000006;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-3, -0.0149999997);
vs[1].Set(3, -0.0149999997);
vs[2].Set(3, 0.0149999997);
vs[3].Set(-3, 0.0149999997);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[4]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(1);
bd.position.Set(1, 2);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[5] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.400000006;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -0.0149999997);
vs[1].Set(1, -0.0149999997);
vs[2].Set(1, 0.0149999997);
vs[3].Set(-1, 0.0149999997);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[5]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[6] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[6]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[7] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[7]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[8] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[8]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[9] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[9]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[10] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[10]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[11] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[11]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[12] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[12]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15, 10);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[13] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[13]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[14] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[14]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15, 7);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[15] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[15]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[16] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[16]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[17] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[17]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[18] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[18]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(14.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[19] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[19]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(15, 1);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[20] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[20]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[21] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[21]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[22] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[22]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 9.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[23] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[23]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[24] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[24]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[25] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[25]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[26] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[26]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 1.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[27] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[27]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13.5, 0.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[28] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[28]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[29] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[29]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[30] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[30]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 9.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[31] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[31]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13, 8);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[32] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[32]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[33] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[33]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[34] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[34]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[35] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[35]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(13, 3);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[36] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[36]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 1.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[37] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[37]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(12.5, 0.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[38] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[38]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[39] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[39]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[40] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[40]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 7.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[41] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[41]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[42] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[42]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[43] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[43]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[44] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[44]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[45] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[45]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11.5, 0.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[46] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[46]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[47] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[47]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11, 10);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[48] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[48]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[49] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[49]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 7.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[50] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[50]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[51] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[51]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[52] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[52]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 4.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[53] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[53]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[54] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[54]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(11, 2);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[55] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[55]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(10.5, 0.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[56] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[56]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[57] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[57]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[58] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[58]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 9.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[59] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[59]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[60] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[60]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 7.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[61] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[61]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[62] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[62]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[63] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[63]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[64] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[64]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[65] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[65]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[66] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[66]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 7.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[67] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[67]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[68] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[68]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(9, 5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[69] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[69]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 3.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[70] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[70]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[71] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[71]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(7.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[72] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, 0.5);
vs[2].Set(-0.5, -0.5);
shape.Set(vs, 3);
fd.shape = &shape;
bodies[72]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(8, 9);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[73] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[73]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(7.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[74] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[74]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(6.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[75] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, 0.5);
vs[2].Set(-0.5, -0.5);
shape.Set(vs, 3);
fd.shape = &shape;
bodies[75]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(7, 7);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[76] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[76]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(6.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[77] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[77]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(5.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[78] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, -0);
vs[2].Set(-0.5, -0.200000003);
vs[3].Set(-0.5, -0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[78]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(4.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[79] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, -0.200000003);
vs[2].Set(-0.5, -0.200000003);
vs[3].Set(-0.5, -0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[79]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(3.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[80] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, -0.200000003);
vs[2].Set(-0.5, -0);
vs[3].Set(-0.5, -0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[80]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[81] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(-0.5, 0.5);
vs[2].Set(-0.5, -0.5);
shape.Set(vs, 3);
fd.shape = &shape;
bodies[81]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[82] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[82]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2.5, 7.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[83] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[83]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2.5, 6.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[84] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[84]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[85] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.5);
vs[1].Set(0.5, -0.400000006);
vs[2].Set(0.300000012, -0.400000006);
shape.Set(vs, 3);
fd.shape = &shape;
bodies[85]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.300000012, -0.400000006);
vs[1].Set(-0.5, -0.400000006);
vs[2].Set(-0.5, -0.5);
shape.Set(vs, 3);
fd.shape = &shape;
bodies[85]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.5, -0.340000004);
vs[1].Set(0.5, 0.5);
vs[2].Set(-0.5, 0.5);
vs[3].Set(-0.5, -0.340000004);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[85]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(0.400000006, -0.400000006);
vs[1].Set(0.400000006, -0.349999994);
vs[2].Set(-0.400000006, -0.349999994);
vs[3].Set(-0.400000006, -0.400000006);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[85]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[86] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[86]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(2, 10);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[87] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[87]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[88] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[88]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[89] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[89]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[90] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[90]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 11.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[91] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[91]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 10.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[92] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[92]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 9.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[93] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[93]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 8.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[94] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[94]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1, 7);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[95] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[95]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 5.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[96] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[96]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(1, 4);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[97] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-1, -1);
vs[1].Set(1, -1);
vs[2].Set(1, 1);
vs[3].Set(-1, 1);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[97]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0.5, 2.5);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[98] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.200000003;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 2400;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-0.5, -0.5);
vs[1].Set(0.5, -0.5);
vs[2].Set(0.5, 0.5);
vs[3].Set(-0.5, 0.5);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[98]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(1);
bd.position.Set(8, 12.3000002);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(16);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[99] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 0.100000001;
fd.restitution = 0;
fd.restitutionThreshold = 1;
fd.density = 1000;
fd.isSensor = bool(1);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2PolygonShape shape;
b2Vec2 vs[8];
vs[0].Set(-8, -6);
vs[1].Set(8, -6);
vs[2].Set(8, 6);
vs[3].Set(-8, 6);
shape.Set(vs, 4);
fd.shape = &shape;
bodies[99]->CreateFixture(&fd);
}
}
{
b2BodyDef bd;
bd.type = b2BodyType(0);
bd.position.Set(0, 0);
bd.angle = 0;
bd.linearVelocity.Set(0, 0);
bd.angularVelocity = 0;
bd.linearDamping = 0;
bd.angularDamping = 0;
bd.allowSleep = bool(4);
bd.awake = bool(0);
bd.fixedRotation = bool(0);
bd.bullet = bool(0);
bd.enabled = bool(32);
bd.gravityScale = 1;
bodies[100] = m_world->CreateBody(&bd);
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0.200000003;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2EdgeShape shape;
shape.m_radius = 0.00999999978;
shape.m_vertex0.Set(0, 0);
shape.m_vertex1.Set(0, 13);
shape.m_vertex2.Set(16, 12);
shape.m_vertex3.Set(0, 0);
shape.m_oneSided = bool(0);
fd.shape = &shape;
bodies[100]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0.200000003;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2EdgeShape shape;
shape.m_radius = 0.00999999978;
shape.m_vertex0.Set(0, 0);
shape.m_vertex1.Set(0, 13);
shape.m_vertex2.Set(16, 13);
shape.m_vertex3.Set(0, 0);
shape.m_oneSided = bool(0);
fd.shape = &shape;
bodies[100]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0.200000003;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2EdgeShape shape;
shape.m_radius = 0.00999999978;
shape.m_vertex0.Set(0, 0);
shape.m_vertex1.Set(16, 13);
shape.m_vertex2.Set(16, -0.5);
shape.m_vertex3.Set(0, 0);
shape.m_oneSided = bool(0);
fd.shape = &shape;
bodies[100]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0.200000003;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2EdgeShape shape;
shape.m_radius = 0.00999999978;
shape.m_vertex0.Set(0, 0);
shape.m_vertex1.Set(0, -0.5);
shape.m_vertex2.Set(0, 13);
shape.m_vertex3.Set(0, 0);
shape.m_oneSided = bool(0);
fd.shape = &shape;
bodies[100]->CreateFixture(&fd);
}
{
b2FixtureDef fd;
fd.friction = 1;
fd.restitution = 0.200000003;
fd.restitutionThreshold = 1;
fd.density = 0;
fd.isSensor = bool(0);
fd.filter.categoryBits = uint16(1);
fd.filter.maskBits = uint16(65535);
fd.filter.groupIndex = int16(0);
b2EdgeShape shape;
shape.m_radius = 0.00999999978;
shape.m_vertex0.Set(0, 0);
shape.m_vertex1.Set(0, -0.5);
shape.m_vertex2.Set(16, -0.5);
shape.m_vertex3.Set(0, 0);
shape.m_oneSided = bool(0);
fd.shape = &shape;
bodies[100]->CreateFixture(&fd);
}
}
{
b2RevoluteJointDef jd;
jd.bodyA = bodies[1];
jd.bodyB = bodies[0];
jd.collideConnected = bool(0);
jd.localAnchorA.Set(0, 0.200000048);
jd.localAnchorB.Set(0, 0.200000048);
jd.referenceAngle = 0;
jd.enableLimit = bool(1);
jd.lowerAngle = -0.17453292;
jd.upperAngle = 0.17453292;
jd.enableMotor = bool(1);
jd.motorSpeed = 0;
jd.maxMotorTorque = 100;
joints[0] = m_world->CreateJoint(&jd);
}
b2Free(joints);
b2Free(bodies);
joints = nullptr;
bodies = nullptr;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment