dist

fun dist(type: InputSignal, deadZone: Float = axisDeadZone): Float

Takes the absolute value of the strength of this InputSignal

Return

the calculated distance

Parameters

type

the input signal

deadZone

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


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

Calculates the distance between each axes InputSignal and returns the highest distance.

Return

the highest distance calculated between both axes

See also