public void tick(Velocity v) { int dx = (int) (MathUtilities.cosdeg(v.direction) * v.getSpeed()); int dy = (int) (MathUtilities.sindeg(360 - v.direction) * v.getSpeed()); this.x += dx; this.y += dy; }