method
IVec2.sub
IVec2.sub(a, b) -> IVec2
Subtracts b from a component-wise, giving the integer offset from one cell to another.
Example
program Demo {
handler Step phase Update {
let delta = IVec2.sub(target, pos)
}
}IVec2.sub(a, b) -> IVec2
Subtracts b from a component-wise, giving the integer offset from one cell to another.
program Demo {
handler Step phase Update {
let delta = IVec2.sub(target, pos)
}
}