I'm trying to make RTS/RTT camera, most of it is already done:
https://www.youtube.com/watch?v=PiPJfCxEOAA
https://github.com/insanewarlock/irrRTS-RTT
All I need now is to toggle
addCameraSceneNodeFPS() like camera rotation when right mouse button is pressed. I payed attention without this line
Code: Select all
device->getCursorControl()->setVisible(false);
mouse stays fixed at the center when using FPS camera, I want something similar: when the right mouse button is clicked cursor should disappear (I managed to do only this part) and target of the camera should start rotating around the position of the camera according to how you move the mouse, when you release the right mouse button the cursor should reappear where ever it was when it disappeared. In the youtube video provided above you can see it doesn't do that, as it's expected since I haven't implemented that yet. Should I do the whole thing on my one with quaternion rotations or something like that, storing mouse location and moving it back when it reappears (by the way I have no idea how to do that last thing) or is there a smarter shortcut for doing it since
addCameraSceneNodeFPS() has already implemented it all ?