Skip to content

Instantly share code, notes, and snippets.

View chicomcastro's full-sized avatar

Francisco Castro chicomcastro

View GitHub Profile
@gunderson
gunderson / FlyCamera.cs
Last active January 15, 2024 16:31
Unity Script to give camera WASD + mouse control
using UnityEngine;
using System.Collections;
public class FlyCamera : MonoBehaviour {
/*
Writen by Windexglow 11-13-10. Use it, edit it, steal it I don't care.
Converted to C# 27-02-13 - no credit wanted.
Simple flycam I made, since I couldn't find any others made public.
Made simple to use (drag and drop, done) for regular keyboard layout
@GuilleUCM
GuilleUCM / maxCamera.cs
Created June 24, 2013 20:33
Unity:Camera:Free camera control
//
//Filename: maxCamera.cs
//
// original: http://www.unifycommunity.com/wiki/index.php?title=MouseOrbitZoom
//
// --01-18-2010 - create temporary target, if none supplied at start
// - Pan = Ctrl + button
// - Orbit = Alt+button
// - Zoom = Alt + Ctrl + button
// - Reset = Space