Files
Alex38Lyon 878ea46cac update
2025-06-03 12:00:47 +02:00

15 lines
355 B
C#

using UnityEngine;
namespace Unity.FPS.Game
{
public class ConstantRotation : MonoBehaviour
{
[Tooltip("Rotation angle per second")] public float RotatingSpeed = 360f;
void Update()
{
// Handle rotating
transform.Rotate(Vector3.up, RotatingSpeed * Time.deltaTime, Space.Self);
}
}
}