Body body4 = new Body("Mover3", new Box(20.0f, 20.0f), 50.0f);
body4.setPosition(200f, 200f);
world.add(body4);
SpringJoint joint1 = new SpringJoint(body1, body2, new Vector2f(150,60), new Vector2f(100, 90));
joint1.setBrokenSpringConst(10);
joint1.setCompressedSpringConst(0);
joint1.setStretchedSpringConst(0);
joint1.setMinSpringSize(0);
joint1.setMaxSpringSize(joint1.getSpringSize());
world.add(joint1);
SpringJoint joint2 = new SpringJoint(body2, body3, new Vector2f(100,110), new Vector2f(160, 150));
joint2.setBrokenSpringConst(10);
joint2.setCompressedSpringConst(0);
joint2.setStretchedSpringConst(0);
//joint2.setSpringSize(100);
joint2.setMinSpringSize(0);
joint2.setMaxSpringSize(joint2.getSpringSize());
world.add(joint2);
//
SpringJoint joint3 = new SpringJoint(body3, body4, new Vector2f(150,160), new Vector2f(200, 210));
joint3.setBrokenSpringConst(100);
joint3.setCompressedSpringConst(0);
joint3.setStretchedSpringConst(0);
joint3.setMinSpringSize(0);
joint3.setMaxSpringSize(joint3.getSpringSize());
world.add(joint3);
SpringJoint joint5 = new SpringJoint(body4, body1, new Vector2f(190, 200), new Vector2f(400, 60));
joint5.setBrokenSpringConst(1);
joint5.setCompressedSpringConst(0.5f);
joint5.setStretchedSpringConst(0.5f);
joint5.setSpringSize(100);
joint5.setMinSpringSize(50);
joint5.setMaxSpringSize(200);
world.add(joint5);
// Body body5 = new Body("Mover4", new Box(20.0f, 20.0f), 100.0f);
// body2.setPosition(400, 400);