Hello. I’m trying to implement a camera movement in my game. I would like the camera’s view to behave the same way as we move the 3d view with the mouse when developing with Unity (pan with scroll button and rotation with right button). However, the results that I obtained are not as precise as the movement from Unity’s 3d view. There is some delay between the movement of the cursor and the movement of the camera. Is there any code ready to implement this movement? Thank you.
If you aren’t already, it is recommended to place camera movement code in LateUpdate, so that any inputs read in Update will already be set. That should avoid any jitter and delay.