public synchronized void start(
     PhysicsParameters parameters, Options options, WorldDescription world)
     throws RemoteException {
   PhysicsParameters.set(parameters);
   PhysicsFactory.getOptions().set(options);
   simulation = PhysicsFactory.createSimulator();
   simulation.setWorld(world);
 }
 public void main() {
   PhysicsFactory.addDefaultFactory("Sticky");
   PhysicsParameters.get().setResolutionFactor(1);
   super.main();
 }
 /**
  * Sets simulation window position on the screen.
  *
  * @param x, x position of simulation window.
  * @param y, y position of simulation window.
  */
 public void setWindowPosition(int x, int y) throws RemoteException {
   PhysicsFactory.getOptions().setWindowPosition(x, y);
 }