Game Development Community

Switching Camera Mode

by Robert S. · in Torque Game Engine · 12/01/2006 (10:58 am) · 1 replies

Hi,

Currenly my camera is continuously bound to my mouse. I have no mouse pointer on screen and when I move the mouse it rotates the camera. I want to switch camera mode so that the mouse pointer remains on screen and the camera is rotated only when the left mouse button is down. The navigation with WASD buttons is working and I want to keep that enabled. Can someone please explain to me how to do this?

Thanks,

#1
12/04/2006 (4:32 am)
Hi Robert,

As you know I have no access to Torque where I sit, but if you find no solution soon let me know and I will fix it up for you when I get home. The feature you want is already implemented in the mission editor (when you right click) and the ingame console (when you enable it). If you can find the appropriate call in there, it should be trivial to make use of it.

The trick is to disable direct input and make the cursor visible via a simple toggle function.