Skip to main content
Cleanup
Source Link
DMGregory
  • 136.3k
  • 22
  • 247
  • 373

Detect ifhow much mouse do multiplehas rotated in a circle rotation around aan XY point

would anyone know a method or algorithm (js) to calculate andHow can I detect if athe mouse cursor is moving byin a circle around a target, and calculate how many turns it's done? Example

For example, if aI rotate the mouse *4 time4 times around a specific XY point on the screen, iI would like to re-center my camera (in my context i, I need algoritmethis algorithm for a camera enginesystem)

I search i little bit on the web, but no found good formula to perform this.

Maybe a will need a special api ?

thank.

Detect if mouse do multiple circle rotation around a XY point

would anyone know a method or algorithm (js) to calculate and detect if a mouse is moving by a circle around a target? Example if a rotate mouse *4 time around a specific XY point, i would like to re-center my camera (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 ?

thank.

Detect how much mouse has rotated in a circle around an XY point

How can I detect if the mouse cursor is moving in a circle around a target, and calculate how many turns it's done?

For example, if I rotate the mouse 4 times around a specific XY point on the screen, I would like to re-center my camera (in my context, I need this algorithm for a camera system)

Source Link
jon
  • 103
  • 4

Detect if mouse do multiple circle rotation around a XY point

would anyone know a method or algorithm (js) to calculate and detect if a mouse is moving by a circle around a target? Example if a rotate mouse *4 time around a specific XY point, i would like to re-center my camera (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 ?

thank.