slow down rotation speed

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?

Time.deltaTime is the elapsed time in seconds. So, you have 360 degrees to go, in 1h30, so 90 minutes, so 5400 seconds.

euler.y = 360f / 5400f;
transform.localRotation *= Quaternion.Euler(euler * Time.deltaTime);

thanks! looks good in unity’s preview, however in the social vr app i’m using the speed is still the same, must be an issue with their limited custom scripting allowances at the moment.