public void updateMovement() {
int dx = (cyclePosition2.getIntX() - cyclePosition1.getIntX())/2;
int dy = (cyclePosition2.getIntY() - cyclePosition1.getIntY())/2;
double speedX = dx*(Math.cos(cycleDegree*Math.PI/180))*cycleStep*Math.PI/180;
double speedY = dy*(Math.cos(cycleDegree*Math.PI/180))*cycleStep*Math.PI/180;
Vector2D newVelocity = new Vector2D(speedX,speedY);
//velocity.setX(speedX);
//velocity.setY(speedY);
setVelocity(newVelocity);
cycleDegree += cycleStep;
setMovement(getVelocity());