Skip to content

Commit

Permalink
Update CinemachineLookAtDataOnSpline.md
Browse files Browse the repository at this point in the history
  • Loading branch information
glabute committed May 15, 2024
1 parent 5e597f9 commit 2590cc7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# 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 specified points, it looks at the specified place.
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 points, and because they specify a target position, the appropriate rotation angles et computed dynamically. As a result, the rotation animation is more robust and less likely to break if the spline is modified.
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. Then, add Data Points to the array.
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

Expand All @@ -16,7 +16,7 @@ When the LookAtDataOnSpline is selected in the inspector, a Scene View tool is p
### 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. |
Expand Down

0 comments on commit 2590cc7

Please sign in to comment.