Is there a reason why you're using vx and vy rather than just x or y.