Another newbie question here.
![Smile :)](./images/smilies/icon_smile.gif)
I want to create a camera that looks down on the object from the top.
I tried to rotate the camera (camera->setRoatation(...)).
But I don't know why it didn't work.
Any ideas?
Many thanks
Code: Select all
Camera->setPosition(0,100,0);
Camera->setTarget(0,0,0);
Code: Select all
core::vector3df cPos = Camera->getUpVector();
cPos.rotateXZBy(0.1, Camera->getPosition());
cPos.Y = Camera->getPosition().Y;
Camera->setUpVector(cPos);