Hi every body,
i want to set my camera rotation by Roll Pith And yaw param...
how to do it ?
why setRotation not work ?
scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, .3f, ID_IsNotPickable, 0, 0, true, 3.f);
camera->setRotation(core::vector3df(9,3,7));
thanks,
Set Camera Rotation with Roll Pitch Yaw
Re: Set Camera Rotation with Roll Pitch Yaw
No one know how to do it ??????????????????????????????????
really we can't setup camera from Euler in Irrlicht Engine!!!??
really we can't setup camera from Euler in Irrlicht Engine!!!??
Re: Set Camera Rotation with Roll Pitch Yaw
Well, you asked.
The FPS camera is special, so it is not likely you will be able to mess with it in the manner you envisage.
Since you actually want to set the camera, you should use the base camera class: smgr->addCameraSceneNode(...);
The FPS camera is special, so it is not likely you will be able to mess with it in the manner you envisage.
Since you actually want to set the camera, you should use the base camera class: smgr->addCameraSceneNode(...);
Re: Set Camera Rotation with Roll Pitch Yaw
Thank You mongoose7 !!!!!, i try this :
scene::ICameraSceneNode* camera =
smgr->addCameraSceneNode(0,core::vector3df(50,50,-60),core::vector3df(-0,30,-60),ID_IsNotPickable,true);
camera->setRotation(core::vector3df(0,0,50));///want to set roll
yaw and pitch worked But when change roll param no effect see ..
scene::ICameraSceneNode* camera =
smgr->addCameraSceneNode(0,core::vector3df(50,50,-60),core::vector3df(-0,30,-60),ID_IsNotPickable,true);
camera->setRotation(core::vector3df(0,0,50));///want to set roll
yaw and pitch worked But when change roll param no effect see ..
Re: Set Camera Rotation with Roll Pitch Yaw
If there is an 'up' vector, maybe you should change that.