Advertisement
Guest User

Untitled

a guest
May 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.29 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class kek : MonoBehaviour
  6. {
  7.     public float ratspeed;
  8.  
  9.     void OnMouseDrag()
  10.     {
  11.         float ratX = Input.GetAxis ("Mouse X") * ratspeed * Mathf.Deg2Rad;
  12.  
  13.         transform.RotateAround (Vector3.right, ratX);
  14.     }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement