addVector
fun addVector(type: InputSignal, positiveX: InputSignal, positiveY: InputSignal, negativeX: InputSignal, negativeY: InputSignal)
Create a vector from four InputSignal bindings. Think of it as two axes in as a single result. In order to have a proper vector, the four signals must have been bound in addBinding. The vector is calculated as follows: positiveX - negativeX and positiveY - negativeY. Note: this will replace any existing vector if it exists.
See also
Parameters
type
the InputSignal that refers to this axis.
positiveX
the positive X axis InputSignal of this vector.
positiveY
the positive Y axis InputSignal of this vector.
negativeX
the negative X axis InputSignal of this vector.
negativeY
the negative Y axis InputSignal of this vector.