Open tuuling opened 5 years ago
When dir is 0 the path stays infinitely on one axis. Not sure how Lua works.. perhaps you could even do dt = inf ?
dt = inf
This is still dividing by dir, so instead of inf and inf getHelpers returns inf and nan.
dir
This was 3 years ago. I remember I ported this script to Typescript and included a separate case where dir === 0 was handled.
When dir is 0 the path stays infinitely on one axis. Not sure how Lua works.. perhaps you could even do
dt = inf
?