I want my object to move down the screen at an angle without changing its rotation


public void move(double angle, double distance) { angle = Math.toRadians(angle); setLocation((int) (getX() + Math.cos(angle) * distance), (int) (getY() + Math.sin(angle) * distance)); }
// with these fields int direction; // the angle you want the actor to fall int speed; // the speed you want the actor to fall int cycle; // tracks the time that the actor falls int initX, initY; // holds the initial location of the actor // using this method to initialize the location fields public void addedToWorld(World world) { initX = getX(); initY = getY(); } // move the actor with this in act or method it calls cycle++; // increment the fall time setLocation(initX, initY); // move actor to initial location setRotation(direction); // set direction to move move(speed*cycle); // move appropriate distance setRotation(0); // reset rotation of actor