Struct CinemachineTrackedDolly.AutoDolly
Controls how automatic dollying occurs
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[Serializable]
public struct AutoDolly
Constructors
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 |
---|---|---|
Boolean | enabled | Whether to enable automatic dolly |
Single | positionOffset | Offset, in current position units, from the closest point on the path to the follow target |
Int32 | searchRadius | Search up to this many waypoints on either side of the current position |
Int32 | stepsPerSegment | We search between waypoints by dividing the segment into this many straight pieces |
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
[Tooltip("If checked, will enable automatic dolly, which chooses a path position that is as close as possible to the Follow target. Note: this can have significant performance impact")]
public bool m_Enabled
Field Value
Type | Description |
---|---|
Boolean |
m_PositionOffset
Offset, in current position units, from the closest point on the path to the follow target.
Declaration
[Tooltip("Offset, in current position units, from the closest point on the path to the follow target")]
public float m_PositionOffset
Field Value
Type | Description |
---|---|
Single |
m_SearchRadius
Search up to this many waypoints on either side of the current position. Use 0 for Entire path
Declaration
[Tooltip("Search up to this many waypoints on either side of the current position. Use 0 for Entire path.")]
public int m_SearchRadius
Field Value
Type | Description |
---|---|
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
[FormerlySerializedAs("m_StepsPerSegment")]
[Tooltip("We search between waypoints by dividing the segment into this many straight pieces. he higher the number, the more accurate the result, but performance is proportionally slower for higher numbers")]
public int m_SearchResolution
Field Value
Type | Description |
---|---|
Int32 |