Post edit history
Linear Interpolation?
Before | After | ||
---|---|---|---|
1 | Basically you have it, though one caveat is that your current formulation gives you ( x2, z2) when new. distance = 0, and ( x1, z1) when new. distance = current. distance, which may be the reverse of what you expect. | 1 | Basically you have it, though one caveat is that your current formulation gives you ( x2, z2) when new. distance == 0, and ( x1, z1) when new. distance == current. distance, which may be the reverse of what you expect. |