Page 1 of 1

How to set the init view of a FPS camera?

Posted: Thu May 31, 2007 9:48 am
by MasterGod
How do I set where would the camera look and be?

Thanks!

Posted: Thu May 31, 2007 10:39 am
by Kim2
In your init function

Code: Select all

// add the camera
cam = smgr->addCameraSceneNodeFPS();
cam->setPosition(vector3df(x, y, z));
cam->setTarget(vector3df(x, y, z));
That will set it up. If you want to move the camera around and change its target you do that with the same calls in your render function.

Posted: Fri Jun 01, 2007 1:35 pm
by MasterGod
gr8! Thanks!