@Override
public void initTest(boolean deserialized) {
{
{
PolygonShape shape = new PolygonShape();
Vec2[] vertices =
new Vec2[] {new Vec2(-40, -20), new Vec2(40, -20), new Vec2(40, 0), new Vec2(-40, 0)};
shape.set(vertices, 4);
getGroundBody().createFixture(shape, 0.0f);
}
{
PolygonShape shape = new PolygonShape();
Vec2[] vertices =
new Vec2[] {new Vec2(-40, -20), new Vec2(-20, -20), new Vec2(-20, 60),
new Vec2(-40, 60)};
shape.set(vertices, 4);
getGroundBody().createFixture(shape, 0.0f);
}
{
PolygonShape shape = new PolygonShape();
Vec2[] vertices =
new Vec2[] {new Vec2(20, -20), new Vec2(40, -20), new Vec2(40, 60), new Vec2(20, 60)};
shape.set(vertices, 4);
getGroundBody().createFixture(shape, 0.0f);
}
{
PolygonShape shape = new PolygonShape();
Vec2[] vertices =
new Vec2[] {new Vec2(-40, 40), new Vec2(40, 40), new Vec2(40, 60), new Vec2(-40, 60)};
shape.set(vertices, 4);
getGroundBody().createFixture(shape, 0.0f);
}
}
m_world.setParticleRadius(0.5f);