In Shiffman's
Learning Processing, he gives an example of a solar system (several planets around a sun) in 2D. I want to transform it into 3D. Certainly this is possible, but how do I handle this following problem?
Let's say I have Earth orbiting the sun. I want Earth to rotate on its own axis (a simple rotate() will do the job) but I also want it to orbit the sun. My Earth will be a sphere: sphere(80), let's say. I'll have translated to the center of the sphere, making my new origin the center of the Earth.
Because rotate() rotates the object around it's origin, and in this case my origin will be the center of the Earth, how can I manage to have it rotate on its axis
and orbit the sun? It seems like I can only have the former.
Here is what I have - my Frogger character is not moving when I use the arrows keys. I am not including my Background/Car/Log class, just my setup/draw and my Frog class.