DirectionTowards
Returns the direction, or normalized Vector, from a starting position and ending position.
Inputs
Vector
(Starting Position)
Vector
(Ending Position)
Output
- Vector
<block type="DirectionTowards">
<value name="VALUE-0">
<block type="GetSoldierState">
<value name="VALUE-0">
<block type="EventPlayer"></block>
</value>
<value name="VALUE-1">
<block type="SoldierStateVectorItem">
<field name="VALUE-0">SoldierStateVector</field>
<field name="VALUE-1">GetPosition</field>
</block>
</value>
</block>
</value>
<value name="VALUE-1">
<block type="CreateVector">
<value name="VALUE-0">
<block type="Number">
<field name="NUM">0</field>
</block>
</value>
<value name="VALUE-1">
<block type="Number">
<field name="NUM">0</field>
</block>
</value>
<value name="VALUE-2">
<block type="Number">
<field name="NUM">0</field>
</block>
</value>
</block>
</value>
</block>