Skip to content

Instantly share code, notes, and snippets.

@tracend
tracend / SmoothLookAt.js
Created March 30, 2011 00:09
Unity3D: Camera script to smoothly look at any direction - Source: http://wiki.dreamsteep.com/Unity_tools
var target : Transform;
var damping = 6.0;
var smooth = true;
@script AddComponentMenu("Camera-Control/Smooth Look At")
function LateUpdate () {
if (target) {
if (smooth)
{