Skip to main content

Subtract

ValueAdapter_Substract_Vector3 subtracts one vector from the other.

FieldDescription
Secondary VectorThe other vector. When the adapter is the Merge Operation of a Tree Operation, it is overwritten with the secondary Stat's value.
Process OrderIncoming To Sec: input − secondary. Sec To Incoming: secondary − input.

Ships for Vector2, Vector2Int, Vector3 and Vector3Int.

Example​

The offset from the attacker to the target:

InputSecondaryProcess OrderResult
Target (4, 0, 3)Source (1, 0, 1)Incoming To Sec(3, 0, 2) — from the attacker to the target
Target (4, 0, 3)Source (1, 0, 1)Sec To Incoming(−3, 0, −2) — from the target to the attacker

Unlike Direction, the result keeps its length (here about 3.6 m).