sabotai_PongPong/pongpong/shift.pde


void repose() {
  if (movePos) {
    //move the central circle border

    float threshh = 10;
    if (mouse.dist(points[1]) < threshh) {
      movePos = false;
    } else {

      points[1] = PVector.lerp(points[1], mouse, 0.1);


      if (scoreMode.equals("circle")) {
        checkCircle();
      }
      //points[1].set(mouseX, mouseY);
    }
  }
}


void rewind(float xx, float yy) {
  if (debug) print(" attemptCorrection.xs= " + xx + " .ys= " + yy);
  ball.sub(new PVector(xx, yy));


  println("");
  print("    rewPos=" + ball);
}

void updatePos() {

  ball.add(ballSpeed);
}