// world.add(new Follower(world, e2, 1000));
// world.add(new Follower(world, e3, 1000));
//
// world.setZoom(200, 200);
ElectronEmitter emit = new ElectronEmitter(world, new Vector(0, 100),
0.1f);
HomogenEField eF1 = new HomogenEField(world,
ShapeFactory.createRectangle(new Vector(100, 100), 200, 200),
Vector.RIGHT.mul(15.0f), false), eF2 = new HomogenEField(
world,
ShapeFactory.createRectangle(new Vector(4200, 100), 8000, 1000),
Vector.UP.mul(5.0f), false);
HomogenBField bF1 = new HomogenBField(
world,
ShapeFactory.createRectangle(new Vector(4200, 100), 8000, 1000),
0.363f, false);
world.add(emit);
world.add(eF1);
world.add(eF2);
world.add(bF1);
world.setCamera(new Camera() {
@Override
public Vector getPosition() {
return new Vector(400, 100);
}
});
// engine.setTargetFrameRate(Parameter.GAME_FPS_TARGET);
engine.switchState(world);