Bummer! This is just a preview. You need to be signed in with a Treehouse account to view the entire video.
Scripting a Tracking Camera0:00 with Nick Pettit
A tracking camera will be able to oscillate along the X, Y, and Z axes. If you're familiar with video or film camera movements, this will allow the camera to pedestal, truck, and dolly.
Transform.localPosition - The
localPositionvariable on the
Transformclass is the position of a transform relative to the parent transform.
Mathf.Sin - The
Sin()method on the
Mathfreturns the sine of an angle in radians.
- Cameras in Unity - Project Files - This is a zip file that contains the Unity project for this course. Download the file, unzip it, and then in your file browser (Finder on OS X and Exporer on Windows) navigate to Cameras in Unity > Assets > _Scenes. Finally, choose the scene you'd like to open.
You need to sign up for Treehouse in order to download course files.Sign up