angle

fun angle(vector: InputSignal, deadZone: Float = axisDeadZone): Float

Calculates the angle of a vector InputSignal. Requires a vector to have been added with the specified vector.

Return

the angle between both axes in the vector

See also

Parameters

vector

the input signal

deadZone

the threshold a GameAxis needs to surpass in order to return a value other than 0.


fun angle(xAxis: InputSignal, yAxis: InputSignal, deadZone: Float = axisDeadZone): Float

Calculates the angle between both InputSignal axes. Requires the axes to have been added with the specified axis and yAxis.

Return

the angle between both axes in the vector

See also

Parameters

xAxis

the X axis input signal

yAxis

the Y axis input signal

deadZone

the threshold a GameAxis needs to surpass in order to return a value other than 0.