I have this script to rotate the Earth…
public class Rotator : MonoBehaviour {
public Vector3 euler;
void Update () {
transform.localRotation *= Quaternion.Euler(euler * Time.deltaTime);
As well as a separate one for the atmosphere…
public class AtmosphereRotator : MonoBehaviour {
void LateUpdate() {
Vector3 direction = Camera.main.transform.position - transform.position;
transform.rotation = Quaternion.LookRotation(-direction);
While they seems accurate earlier on, now for some reason it’s way too fast. The planet should be spinning around once every hour and a half as this is from the view of a space station in Low Earth Orbit.
I don’t know much about scripting at all, and have been trying for a couple of hours to figure out how to change these values but nothing’s working yet. Any advice?