Move from point a, to point b, and determine the accuracy
Let's say I have a circle at point a (0,0), and I wish to move it to point b (23,58), whatever, how can I accurately do this with a speed variation if I wanted. (I'm doing this in javascript).
Every attempt I make ends up causing it to shake (as the accuracy is off) someone suggested clamping but I have no idea how to do this or where to even look to figure out how.
Any sources, examples, references, guides, tutorials... that correctly explain it regardless if it's one piece of the puzzle is appreciated.
If it helps, I'm using mouse clicks to determine the position to move my object to.
Let's say I have a circle at point a (0,0), and I wish to move it to point b (23,58), whatever, how can I accurately do this with a speed variation if I wanted. (I'm doing this in javascript).
Every attempt I make ends up causing it to shake (as the accuracy is off) someone suggested clamping but I have no idea how to do this or where to even look to figure out how.
Any sources, examples, references, guides, tutorials... that correctly explain it regardless if it's one piece of the puzzle is appreciated.
If it helps, I'm using mouse clicks to determine the position to move my object to.