shape.set(new Vec2(-40.0f, 0.0f), new Vec2(40.0f, 0.0f));
ground.createFixture(shape, 0.0f);
}
{
CircleShape shape = new CircleShape();
shape.m_radius = 0.5f;
BodyDef bd = new BodyDef();
bd.type = BodyType.DYNAMIC;
RevoluteJointDef rjd = new RevoluteJointDef();
bd.position.set(-10f, 20.0f);
Body body = getWorld().createBody(bd);
body.createFixture(shape, 5.0f);
float w = 100.0f;
body.setAngularVelocity(w);
body.setLinearVelocity(new Vec2(-8.0f * w, 0.0f));
rjd.initialize(ground, body, new Vec2(-10.0f, 12.0f));
rjd.motorSpeed = -1.0f * MathUtils.PI;
rjd.maxMotorTorque = 10000.0f;
rjd.enableMotor = false;
rjd.lowerAngle = -0.25f * MathUtils.PI;
rjd.upperAngle = 0.5f * MathUtils.PI;
rjd.enableLimit = true;
rjd.collideConnected = true;
m_joint = (RevoluteJoint) getWorld().createJoint(rjd);
}
{
CircleShape circle_shape = new CircleShape();
circle_shape.m_radius = 3.0f;
BodyDef circle_bd = new BodyDef();
circle_bd.type = BodyType.DYNAMIC;
circle_bd.position.set(5.0f, 30.0f);