Javascript – Rotating a line to look at the mouse with linear interpolation causes jumping
Earlier, I was trying to find out how to rotate a line around a pivot using p5.js, and I played with the code a little bit to make the line point towards the mouse using the atan2 function. It worked…