FPS Camera with free cursor movement

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
Apoptyzm
Posts: 19
Joined: Tue Sep 23, 2008 7:53 pm

FPS Camera with free cursor movement

Post by Apoptyzm »

Hello,
i just want to ask if i can use CameraSceneNodeFPS in game and somehow release the cursor when i want to make some changes on screen in options/GUI with mouse? If so, then how?
Or do I have to make my own custom Camera for this simple thing?
Iyad
Posts: 140
Joined: Sat Mar 07, 2009 1:18 am
Location: Montreal, Canada

Post by Iyad »

From the irrlicht api:

Code: Select all

virtual void irr::scene::ISceneNodeAnimatorCameraFPS::setRotateSpeed (f32  rotateSpeed) 
Set the rotation speed in degrees.

Set it to 0.0f.
#include <Iyad.h>
Acki
Posts: 3496
Joined: Tue Jun 29, 2004 12:04 am
Location: Nobody's Place (Venlo NL)
Contact:

Post by Acki »

cam->setInputReceiverEnabled(false/true);

also the search function is pretty usefull: http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=39248
while(!asleep) sheep++;
IrrExtensions:Image
http://abusoft.g0dsoft.com
try Stendhal a MORPG written in Java
Post Reply