Not sure if this will fix your problem since you didn't provide full code, but it is an error at least.



public void setXVel(double xv1) {xvel=xv1;}

public void setYVel(double xv1)...