Hello! I have been looking for a solution for quite a while for this specific issue. Have you ever been in a game with a loading/main menu screen with a camera that moves depending on where your mouse is on the screen?
I basically want to recreate this, however I only need help with working out how to pull that off (not any UI stuff). I already have the camera and everything set up but just want to know how I would do it.
After consulting ChatGPT, this forum and several other sources the only solutions I can find are ones that have an external camera, rotating a DIFFERENT part with the mouse. Instead, I want to rotate the camera part (on 2 axis: x,y).
I actually tried that exact video, and after recreating it, it moves the camera instead of rotating it! I don’t know how to adapt it either because I’m pretty new when it comes to vector3, lookat, angles and stuff like that.
Hey, I’m sorry for the late reply and the lack of clarity in my responses, I have another issue if you’d be so kind to help with:
It works ALMOST as intended, except the camera stops after reaching a certain point on the screen. I was wanting something that continuously moved in the direction of the mouse until the mouse had returned to the position of the screen.
Okay. Here is the issue with doing it that way. If the mouse is hovered off-center for too long the camera will just continue to slowly pan, resulting in the camera being able to rotate 360 degrees. Is this what you want? Or do you want the camera to stop after a certain point?