Rotation | FEP

PHOTO EMBED

Wed May 04 2022 17:50:54 GMT+0000 (Coordinated Universal Time)

Saved by @BiscuitTinx #c#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class rotation : MonoBehaviour
{
    [Range(0, 1)]
    public float xRotation, yRotation, zRotation;
    void Update()
    {
        transform.Rotate(xRotation, yRotation, zRotation);
    }
}
content_copyCOPY