Files
ScienceLab.AtmosphericPressure/Assets/Scripts/AtmosphereRotator.cs
2026-05-29 18:21:53 +03:00

19 lines
489 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AtmosphereRotator : MonoBehaviour
{
public float rotationSpeedX = 0f;
public float rotationSpeedY = 2f;
public float rotationSpeedZ = 0f;
void Update()
{
transform.Rotate(rotationSpeedX * Time.deltaTime,
rotationSpeedY * Time.deltaTime,
rotationSpeedZ * Time.deltaTime,
Space.World);
}
}