I got a very dumb question, I think
If I create a CameraSceneNodeFPS, I can rotate it without problems. But if I want to use a "normal" camera, he doesnt want to rotate
Code: Select all
camera->setRotation(vector3df(90.0f,0.0f,0.0f));Code: Select all
if(p.X <= 0.1)
{
vector3df pos = camera->getPosition();
pos.X = pos.X - 5;
camera->setPosition(pos);
vector3df rot = camera->getRotation();
rot.X = rot.X - 50;
camera->setRotation(rot);
}Code: Select all
ICameraSceneNode *camera = smgr->addCameraSceneNodeFPS (0, 100, 500);
camera->setInputReceiverEnabled (false);