private synchronized void centerOnHexSoftStep(long deltaTime){
  if (isSoftCentering) {
    waitTimer+=deltaTime;
    if (waitTimer < 20)     return;
    waitTimer=0;
    Point2D newCenter=new Point2D.Double(oldCenter.getX() + (softCenterTarget.getX() - oldCenter.getX()) / SOFT_CENTER_SPEED,oldCenter.getY() + (softCenterTarget.getY() - oldCenter.getY()) / SOFT_CENTER_SPEED);
    centerOnPointRel(newCenter.getX(),newCenter.getY());
    oldCenter=newCenter;
    if (softCenterTarget.distance(newCenter) < 0.0005) {
      stopSoftCentering();
      pingMinimap();
    }
  }
}

private synchronized void centerOnHexSoftStep ( long deltaTime ) { if ( isSoftCentering ) { waitTimer += deltaTime ; if ( waitTimer < 20 ) return ; waitTimer = 0 ; Point2D newCenter = new Point2D . Double ( oldCenter . getX ( ) + ( softCenterTarget . getX ( ) - oldCenter . getX ( ) ) / SOFT_CENTER_SPEED , oldCenter . getY ( ) + ( softCenterTarget . getY ( ) - oldCenter . getY ( ) ) / SOFT_CENTER_SPEED ) ; centerOnPointRel ( newCenter . getX ( ) , newCenter . getY ( ) ) ; oldCenter = newCenter ; if ( softCenterTarget . distance ( newCenter ) < 0.0005 ) { stopSoftCentering ( ) ; pingMinimap ( ) ; } } }
moves the board one step towards the final position in during soft centering .
