Share Posted May 23, 2018 Would anyone know a method or algorithm in JS to calculate and detect if a mouse is moving by a circle around a target? Example if a rotate mouse *2 time around a specific XY point, i would like to re-center my camera obj. (in my context i need algoritme for a camera engine) I search i little bit on the web, but no found good formula to perform this. Maybe a will need a special api ? or a easy trick to do this with GSAP ? i take a try on this forum, i not find similar codepen project to do this. thank for suggest guys. in context, the target position are know, i need to find a way to check if the mouse do multiple circle rotation around this target XY, in a timelaspe (maybe 1000 or 2000 ms) Link to post Share on other sites