joemckay5
joemckay5
You can translate from your translate if you push without popping. Here's a sun-earth-moon example https://editor.p5js.org/Joemckay/sketches/GHYH1-ugr
I'm not fully understanding how your proposed code would make the sun-earth-moon simulation easier. If you just want the earth to rotate around the sun then rotateAround(locSun, locEarth, angle, radius)...
Try drawing anything after you call your function and it will also be rotating. Push and pop are necessary because it resets the rotation as well as the position. At...
dhowe, I teach Processing too, and you're right, rotation is a tricky topic. I hope everyone is keeping in mind that the proposed function doesn't alleviate the need to push...
Is this the same problem as #3062?