Struct DefaultInputAxisDriver
This object drives an input axis.
It reads raw input, applies it to the axis value, with acceleration and deceleration.
Inherited Members
Namespace: Unity.Cinemachine
Assembly: solution.dll
Syntax
[Serializable]
public struct DefaultInputAxisDriver
Fields
Name | Description |
---|---|
AccelTime | The amount of time in seconds it takes to accelerate to MaxSpeed with the supplied Axis at its maximum value |
DecelTime | The amount of time in seconds it takes to decelerate the axis to zero if the supplied axis is in a neutral position |
Properties
Name | Description |
---|---|
Default | Default value |
Methods
Name | Description |
---|---|
ProcessInput(ref InputAxis, float, float) | Apply the input value to the axis value |
Reset(ref InputAxis) | Reset an axis to at-rest state |
Validate() | Call from OnValidate: Make sure the fields are sensible |