Assembling Main scene.

This commit is contained in:
Khauvinkh
2024-08-18 17:48:35 +02:00
parent 409876fd7b
commit a2584d9640
45 changed files with 3692 additions and 115 deletions

View File

@@ -0,0 +1,17 @@
using UnityEngine;
public class ConstantRotation: MonoBehaviour
{
public Vector3 Axis = Vector3.up;
public float RotationRate = 1f;
public void Update()
{
var rotation = transform.rotation;
var delta = Quaternion.AngleAxis(RotationRate * Time.deltaTime, Axis);
transform.SetPositionAndRotation(transform.position, rotation * delta);
}
}