topical media & game development
lib-unity-tutorial-gameplay-Assets-Scripts-2D-Camera-CameraTargetAttributes.js / js
// This script goes on any GameObject in your scene that you will track with the camera.
// It'll help customize the camera tracking to your specific object to polish your game.
// See the GetGoalPosition () function in CameraScrolling.js for an explanation of these variables.
var heightOffset = 0.0;
var distanceModifier = 1.0;
var velocityLookAhead = 0.15;
var maxLookAhead = Vector2 (3.0, 3.0);
(C) Æliens
04/09/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.