-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
532 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
com.unity.cinemachine/Documentation~/CinemachineLookAtDataOnSpline.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# LookAt Data On Spline | ||
|
||
This CinemachineCamera __Rotation Control__ behaviour lets you assign LookAt targets to points on a spline, so that as the camera arrives at the position on the spline, it looks at the specified place. | ||
|
||
It's useful for creating curated dolly shots with specified aim targets along the way. This behaviour eliminates the need to provide rotation animations for the camera that are synchronized with the spline position animation. LookAt points are anchored to specific spline positions, and because they specify a LookAt target point, the appropriate rotation angles get computed dynamically. As a result, the rotation animation is more robust and less likely to break if the spline is modified. | ||
|
||
To use this behaviour, select it in the Rotation Control section of the CinemachineCamera inspector, or just add it manually to a CinemachineCamera. Note that a CinemachineSplineDolly behaviour is required in the Position Control section of the CinemachineCamera. Then, add Data Points to the array. | ||
|
||
### Scene View Tool | ||
|
||
When the LookAtDataOnSpline is selected in the inspector, a Scene View tool is provided to position the LookAt targets along the spline. The tool lets you add, remove, and reposition LookAt targets. | ||
|
||
![LookAt Data On Spline Tool](images/LookAtDataOnSplineTool.png) | ||
|
||
|
||
### Properties | ||
|
||
| Property | Field | Description | | ||
| --- | --- | --- | | ||
| __Index Unit__ | | Defines how to interpret the _Index_ field for each data point. _Knot_ is the recommended value because it remains robust if the spline points change. | | ||
| __Data Points__ | | The list of markup points on the spline. As the camera approaches these points, the corresponding fields will come into effect. | | ||
| | _Index_ | The position on the Spline where the camera should look at the supplied point. The value is interpreted according to the _Index Unit_ setting. | | ||
| | _Look At Point_ | The point that the camera should look at, in world space co-ordinates. | | ||
| | _Easing_ | Controls how to ease in and out of this target. A value of 0 will linearly interpolate between LookAt points, while a value of 1 will slow down and briefly pause the rotation to look at the target. | | ||
|
||
|
Binary file added
BIN
+209 KB
com.unity.cinemachine/Documentation~/images/LookAtDataOnSplineTool.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 114 additions & 0 deletions
114
com.unity.cinemachine/Editor/EditorResources/Icons/[email protected]
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
114 changes: 114 additions & 0 deletions
114
com.unity.cinemachine/Editor/EditorResources/Icons/[email protected]
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.