Problem while setting camera position and target

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
ikk
Posts: 8
Joined: Sat Jun 03, 2006 6:13 pm
Contact:

Problem while setting camera position and target

Post by ikk »

Hello,
I can set camera position or camera target but when I set them both, like this:

Code: Select all

lpCamera->setPosition( vPos );
lpCamera->setTarget( vLookAt );
it doesnt work and camera target is totally difrent.
what can be wrong?
ikk
Posts: 8
Joined: Sat Jun 03, 2006 6:13 pm
Contact:

Post by ikk »

i solved it partially,
it works when i create camera with:
ISceneManager::addCameraSceneNode
and dont when with:
ISceneManager::addCameraSceneNodeFPS
why...?
Post Reply