Skip to content

Instantly share code, notes, and snippets.

View rhedgeco's full-sized avatar
🤌

Ryan Hedgecock rhedgeco

🤌
View GitHub Profile
@rhedgeco
rhedgeco / SimpleFreeCamera.cs
Created February 20, 2022 21:14
A simple free camera script for Unity3d
using UnityEngine;
public class SimpleFreeCamera : MonoBehaviour
{
[SerializeField] private float normalSpeed = 10f;
[SerializeField] private float shiftSpeed = 15f;
[SerializeField] private float rotateSpeed = 200f;
private bool _lockMouse;
private float _moveSpeed;