Quote:
Originally Posted by NiLuJe
You'll have to ask someone actually fluent in trigonometry, that's not me
|
Trigonometry? I understand her... a little

But I don't know how to make a user-patch...
Code:
...
if (not simple
and math.abs(y_diff) > 1.732*math.abs(x_diff) <===
and math.abs(y_diff) < 3.732*math.abs(x_diff)) <===
or (simple and diagonal)
then
direction = v_direction .. h_direction
elseif (math.abs(x_diff) > 0.577*math.abs(y_diff)) then <===
direction = h_direction
...