Files
Click-PointRPG/Assets/Scripts/WindmillBladeRotator.cs

13 lines
340 B
C#
Raw Permalink Normal View History

2026-02-11 17:30:49 +00:00
using UnityEngine;
public class WindmillBladeRotator : MonoBehaviour
{
[Header("Rotation Settings")]
public float rotationSpeed = 60f; // degrees per second
public Vector3 rotationAxis = Vector3.forward; // default: Z axis
void Update()
{
transform.Rotate(rotationAxis, rotationSpeed * Time.deltaTime);
}
}