Camera rotation doesn't do anything !

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
Isometric God

Camera rotation doesn't do anything !

Post by Isometric God »

I'm trying to rotate the camera, but it doesn't do anything. Here's the code :

Code: Select all

	m_CameraNode = g_pSceneMgr->addCameraSceneNode(0, core::vector3df(-100,350,250), core::vector3df(0,0,0));
	m_CameraNode->setInputReceiverEnabled(false);
	m_CameraNode->setRotation(core::vector3df(0, 90, 0));
I'm using Irrlicht 0.41. Thanx for your help in advance :wink: [/code][/url]
Guest

Post by Guest »

unless i'm missing something, you're only calling the setRotation() function once, which will only set the initial rotation of the camera to 0,90,0. you have to keep calling the function to "see" a change.
Isometric God
Posts: 69
Joined: Sun Oct 12, 2003 3:42 pm
Location: Germany

Post by Isometric God »

why should that be ? the position of the camera stays the same all the time... for some reason the same problem exists concerning Billboard sprites. Animated meshes however do work fine
Post Reply