Struct CinemachineTrackedDolly.AutoDolly
Controls how automatic dollying occurs
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[Serializable]
public struct AutoDollyConstructors
AutoDolly(Boolean, Single, Int32, Int32)
Constructor with specific field values
Declaration
public AutoDolly(bool enabled, float positionOffset, int searchRadius, int stepsPerSegment)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Boolean | enabled | |
| System.Single | positionOffset | |
| System.Int32 | searchRadius | |
| System.Int32 | stepsPerSegment | 
Fields
m_Enabled
If checked, will enable automatic dolly, which chooses a path position that is as close as possible to the Follow target.
Declaration
public bool m_EnabledField Value
| Type | Description | 
|---|---|
| System.Boolean | 
m_PositionOffset
Offset, in current position units, from the closest point on the path to the follow target.
Declaration
public float m_PositionOffsetField Value
| Type | Description | 
|---|---|
| System.Single | 
m_SearchRadius
Search up to how many waypoints on either side of the current position. Use 0 for Entire path
Declaration
public int m_SearchRadiusField Value
| Type | Description | 
|---|---|
| System.Int32 | 
m_SearchResolution
We search between waypoints by dividing the segment into this many straight pieces. The higher the number, the more accurate the result, but performance is proportionally slower for higher numbers
Declaration
public int m_SearchResolutionField Value
| Type | Description | 
|---|---|
| System.Int32 |