Hello, If at all possible I'd like to use r*Math.sin(degree in radians) and r*Math.cos(degree in radians) to calculate both the x and y in order for one object to orbit another.
Actor orbited = ...;
private int speed = ...;; // in degrees // or private double speed = ...;; // in radians
Actor orbited = ...;
private int speed = ...;; // in degrees // or private double speed = ...;; // in radians
radians += speed; // your two lines above setLocattion(orbited.getX()+x, orbited.getY()+y);
Actor orbited = ...;
private int speed = ...;; // in degrees // or private double speed = ...;; // in radians
radians += speed; // your two lines above setLocation(orbited.getX()+x, orbited.getY()+y);