Sudden camera movement when clicking!

I have a system which camera kinda tilt with the mouse movement a bit

Sorry for the bad quality, my graphic card is 4 dollar literally :smiling_face_with_tear:


It function normally but when right clicking it move suddenly move while the mouse still at the same position :face_with_thermometer: :face_with_monocle:

Kinda strange because if my mouse moved when I click, It still shouldn’t move that far

This is the code:


Roughly I translated to:
image

The one in the above is a more slightly optimized version of this cleaner one…

What I’m trying to solve is the sudden movement of the camera when right clicking with the mouse, I don’t know why but right clicking seem to have an impact on mouse position :yum:

Thank yall :partying_face:

instead of images you can use code part to put code that can be copied

I will mind that!

Basically when I left click then hold it function normal like it would but during the transition of hold and not hold, there’s an impact on the position of the cam which based on the mouse
So I think there’s a different between not holding mouse’s position and the free mouse position


In the video you can see period of hold and not hold :face_with_monocle:
And clearly see the transition
Noticing the snap

1 Like

can u share a place with the script