I am trying to rotate multiple spheres around one object in the center and the challenge I am facing now is how to put different start points (maybe angle?) for the shapes so that they all don't start right from the same spot all at once.
This is my code :
Sphere earth = new Sphere(2);
earth.setTranslateZ(7);
earth.setTranslateX(30);
RotateTransition rt4 = new RotateTransition();
rt4.setNode(earth);
rt4.setDuration(Duration.millis(3000));
rt4.setAxis(Rotate.Y_AXIS);
rt4.setByAngle(360);
rt4.setCycleCount(Animation.INDEFINITE);
rt4.setInterpolator(Interpolator.LINEAR);
rt4.play();
Edit (for clarification): earth is rotating around itself and around the center point with coordinates (0,0,0) at the same time. What I want to change the from where earth starts rotating around the center point and NOT around itself.