groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(45f , -50f );
vertices[1] = new Vector2(50f , -50f );
vertices[2] = new Vector2(50f , 50f);
vertices[3] = new Vector2(45f , 50f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(50f , -40f );
vertices[1] = new Vector2(50f , -35f );
vertices[2] = new Vector2(-50f , -35f);
vertices[3] = new Vector2(-50f , -40f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(50f , 55f );
vertices[1] = new Vector2(50f , 60f );
vertices[2] = new Vector2(-50f , 60f);
vertices[3] = new Vector2(-50f , 55f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(60f , 0f );
vertices[1] = new Vector2(70f , 20f );
vertices[2] = new Vector2(0f , -55);
vertices[3] = new Vector2(5f , -75f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(80f , 0f );
vertices[1] = new Vector2(90f , 10f );
vertices[2] = new Vector2(0f , 85);
vertices[3] = new Vector2(5f , 68f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(0f , -60f );
vertices[1] = new Vector2(-50f , 0f );
vertices[2] = new Vector2(-60f , 0);
vertices[3] = new Vector2(-10f , -60f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}
{
PolygonShape groundPoly = new PolygonShape();
Vector2[] vertices = new Vector2[4];
vertices[0] = new Vector2(0f , 75f );
vertices[1] = new Vector2(-65f , 30f );
vertices[2] = new Vector2(-50f , 30);
vertices[3] = new Vector2(10f , 75f);
groundPoly.set(vertices);
BodyDef groundBodyDef = new BodyDef();
groundBodyDef.type = BodyType.StaticBody;
groundBodyDef.position.x = 10;
groundBodyDef.position.y = 0;
groundBody = world.createBody(groundBodyDef);
FixtureDef fixtureDef = new FixtureDef();
fixtureDef.shape = groundPoly;
fixtureDef.filter.groupIndex = 0;
groundBody.createFixture(fixtureDef);
groundPoly.dispose();
}