|
using UnityEngine;
|
|
|
|
public class ConstantRotation : MonoBehaviour
|
|
{
|
|
public float rotationSpeed = 30f; // Adjust the speed as needed
|
|
|
|
void Update()
|
|
{
|
|
// Rotate the object around its Y-axis continuously
|
|
transform.Rotate(Vector3.up, rotationSpeed * Time.deltaTime);
|
|
}
|
|
} |