You did ask "I like the fact that you say just...". So i do think you asked what Radikalizm said later on.IrrlichtUserNumber| wrote:Sorry I am not at the level of excellence that you obviously must be, referring to yourself as "we".
However the word 'we' is correct. At this forum and several others some, mostly leading, people are trying to keep the level of intelligence at least at low-level. Low-level as we were /all/ beginners. And low-level isn't too high I suppose.
My apologies if it is sounding harse but the general intelligence of all people is declining fast and getting faster. Please respect those who are trying to keep it up. That will benefit you too. It isn't a personal 'attack'.
That said, just do... :
Code: Select all
vector3df moveby = vector3df( 0, 10, 0 );
vector3df position = cam->getPosition();
vector3df target = cam->getPosition();
cam->setPosition( position + moveby );
cam->setTarget( target + moveby );
Code: Select all
// initializing
vector3df targetOffset = vector3df( 0, 0, 1 );
// update frame, set camera position
vector3df moveby = vector3df( 0, 10, 0 );
vector3df position = cam->getPosition() + moveby;
cam->setPosition( position );
cam->setTarget( position + targetOffset );
Regards