I am a entry level learner of Java3d. I have been practicing some programs by seeing online tutorials, but I got struck with a problem, I couldn't solve it by my self. The task is,
I have five different objects in my code, lets assume them as our solar system. So now I want to animate the rotation of earth. this can be done easily by using an interpolator. If i use interpolator earth object will rotate about its local axis. but If i want to rotate our Earth Object aobut the axis of Sun Object, how can I achieve it? I know if we place our Sun exactly at the default Global axes its very easy, but in my case I have to place that in a different position.
So in one line the problem is HOW TO ROTATE AN OBJECT AROUND THE AXIS OF ANOTHER OBJECT WHICH IS PLACED IN A ARBITRARY POSITION IN THE CO ORDINATE SYSTEM.
I hope some one faced this problem already and got rid of it. I would rally appreciate for your time and interest.