Skip to content

Instantly share code, notes, and snippets.

View rogue6800's full-sized avatar

Hayden Ravenscroft rogue6800

  • Mail Solutions Group
View GitHub Profile
@rogue6800
rogue6800 / CameraOrbit.cs
Last active January 7, 2024 23:13
Smooth Mouse Orbit Camera
//Adapted from: https://wiki.unity3d.com/index.php/MouseOrbitImproved
//License: Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0)
//https://creativecommons.org/licenses/by-sa/3.0/
//Link to demo: https://youtu.be/I_7PyyzziTY
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraOrbit : MonoBehaviour