Exemplo n.º 1
0
 public void update(Observable obs, Object obj) {
   if (isUpdating) {
     return;
   }
   isUpdating = true;
   PhysicBodyMoving moving =
       new PhysicBodyMoving(startSpeed.getValue(), acceleration.getValue(), time.getValue());
   finishSpeed.setValue(moving.getFinishSpeed());
   path.setValue(moving.getPath());
   isUpdating = false;
 }