I am trying to create the classic third person effect where you right click on the screen and hold to rotate camera around to see. What I'd like to do is make the cursor invisible and anchor the mouse cursor at that point and have the camera rotate through the Mouse X/ Mouse Y axis. I've read that previous posts claim that you can't directly anchor your mouse unless you use
CursorLockedMode.Locked
However I don't want my mouse to jump to the center of the screen unless I was able to return it back to its previous point on the screen afterwards. In these posts I've read the only way to do it is to possibly recreate the cursor to be software controlled and then you can manipulate it's position but I don't know where to begin if that is the case.
if (rightclicked)
{
cursorPosition = currentCursorPosition;
Cursor.Visible = false;
//Retrieve MouseX and Mouse Y and rotate camera
}
Basically, i'm trying to accomplish this in pseudo code and everything i've read makes it seem unattainable.
Thanks in advance.