Hello,
i did a small blueprint so i rotate the camera only when RMB is pressed.
Now i need to add something on RMB Output “Pressed” so my mouse will stay in the same location and rotate the camera.
I tried few things but the mouse is still moving and the camera rotation stops
Any ideas how to stop the cursor at the position where “RMB” was pressed but still be able to rotate the camera ?
first that calculates where cursor from ui space is pointing in 3d space. Do it either as position in 3d on sphere around camera, or linetrace from camera in direction cursor is pointing.
second function is to calculate that 3d space location back to 2d ui space.
Now when you rotate camera, calculate that 3d space location for pointer and update location of pointer on 2d screen. Keep updating it while rotating.