Advertisement
LeeMace

Rotate object from centre

Apr 25th, 2023
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.24 KB | Gaming | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Driver : MonoBehaviour
  6. {
  7.     void Start()
  8.     {
  9.     }
  10.  
  11.     void Update()
  12.     {
  13.         transform.Rotate(0, 0, 0.1f);
  14.        
  15.     }
  16. }
Tags: rotate
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement