Method UpdateHeading
UpdateHeading(float, Vector3, ref AxisState)
Update the X axis and calculate the heading. This can be called by a delegate with a custom axis. Note that this method is obsolete.
Declaration
public float UpdateHeading(float deltaTime, Vector3 up, ref AxisState axis)
Parameters
Type | Name | Description |
---|---|---|
float | deltaTime | Used for damping. If less than 0, no damping is done. |
Vector3 | up | World Up, set by the CinemachineBrain |
AxisState | axis |
Returns
Type | Description |
---|---|
float | Axis value |
UpdateHeading(float, Vector3, ref AxisState, ref Recentering, bool)
Update the X axis and calculate the heading. This can be called by a delegate with a custom axis.
Declaration
public float UpdateHeading(float deltaTime, Vector3 up, ref AxisState axis, ref AxisState.Recentering recentering, bool isLive)
Parameters
Type | Name | Description |
---|---|---|
float | deltaTime | Used for damping. If less than 0, no damping is done. |
Vector3 | up | World Up, set by the CinemachineBrain |
AxisState | axis | |
AxisState.Recentering | recentering | |
bool | isLive | true if the vcam is live |
Returns
Type | Description |
---|---|
float | Axis value |