Camera move on click works but has a glitch

Hello, I’ve finished implementing click and move camera functionality, but it has a glitch where as soon as you click to move to a location and try to quickly turn, it will glitch and then decide to work. I don’t know what’s causing the problem. I want to be able to quickly turn/rotate the camera as soon as i move to the click location. Thank you!

You’re trying to move the camera while the animation is still playing, which won’t work, as the animation will overwrite any changes done by the mouse. You could solve this in two ways: either completely disable camera control while the animation is running, or stop the animation if the user starts moving the camera.

3 Likes

Thank you, i’ve fixed it and improved the code too