Class CinemachineDollyCart
This is a very simple behaviour that constrains its transform to a CinemachinePath.
It can be used to animate any objects along a path, or as a Follow target for
Cinemachine Virtual Cameras.
Inheritance
MonoBehaviour
CinemachineDollyCart
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
public class CinemachineDollyCart : MonoBehaviour
Fields
m_Path
The path to follow
Declaration
public CinemachinePathBase m_Path
Field Value
Type | Description |
---|---|
CinemachinePathBase |
m_Position
The cart's current position on the path, in distance units
Declaration
public float m_Position
Field Value
Type | Description |
---|---|
System.Single |
m_PositionUnits
How to interpret the Path Position
Declaration
public CinemachinePathBase.PositionUnits m_PositionUnits
Field Value
Type | Description |
---|---|
CinemachinePathBase.PositionUnits |
m_Speed
Move the cart with this speed
Declaration
public float m_Speed
Field Value
Type | Description |
---|---|
System.Single |
m_UpdateMethod
When to move the cart, if Velocity is non-zero
Declaration
public CinemachineDollyCart.UpdateMethod m_UpdateMethod
Field Value
Type | Description |
---|---|
CinemachineDollyCart.UpdateMethod |