Method GetAxisValue
GetAxisValue(int)
Get the value of the input axis
Declaration
float GetAxisValue(int axis)
Parameters
Type | Name | Description |
---|---|---|
int | axis | Which axis to query: 0, 1, or 2. These represent, respectively, the X, Y, and Z axes |
Returns
Type | Description |
---|---|
float | The input value of the axis queried |