Skip to content

Instantly share code, notes, and snippets.

View phosphoer's full-sized avatar

David Evans phosphoer

View GitHub Profile
@phosphoer
phosphoer / CameraControllerPhoto.cs
Created April 13, 2024 03:13
Camera Mouse Movement
using UnityEngine;
public class CameraControllerPhoto : CameraControllerBase
{
public float Sensitivity = 1.5f;
public float MaxPitch = 45.0f;
public float MoveSpeed = 10;
public float MaxDistance = 30.0f;
public float MinDistToGeometry = 2.0f;
public float MinDistToTerrain = 5.0f;