Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class kek : MonoBehaviour
- {
- public float ratspeed;
- void OnMouseDrag()
- {
- float ratX = Input.GetAxis ("Mouse X") * ratspeed * Mathf.Deg2Rad;
- transform.RotateAround (Vector3.right, ratX);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement