How do you handle rotation for planets?
I've built a satellite system fairly well-removed from ivoyager, essentially just using it's timekeeper. However, now I want to get the current rotation of the earth and apply it to another object.
I tried just getting the rotation of the earth:
Thanks
I tried just getting the rotation of the earth:
Global.bodies_by_name.PLANET_EARTH.rotationand the basis of earth:
Global.bodies_by_name.PLANET_EARTH.transform.basisBut I found that both of these are always 0. So, you don't directly rotate the earth node... how do you do it? And, if possible, how can I get the earths rotation so that I can apply it to a standard spatial node?
Thanks
Comments
Instead, it's the model itself that is scaled and rotated. Body.model_manager holds the model and does the rotation each frame. (ModelManager is getting a renamed to BodyGeometry in next version. It will have better API too.)