Hi,
I have this generic code to set up the camera:
void MainScene::initCamera()
{
auto sizeWindow = Director::getInstance()->getWinSize();
camera = Camera::createPerspective(60, (float)sizeWindow.width / sizeWindow.height, 1.0, 1000);
camera->setCameraFlag(CameraFlag::USER1);
camera->setPosition3D(Vec3(0, 0, 0)+ Vec3(0,50,0));
camera->lookAt(Vec3(0, 0, 10), Vec3(1,1,1));
this->addChild(camera);
}
Currently, the vanishing point is on the middle of the screen, I want to change the vanishing point to slightly lower than the middle screen, How do I do so?
I tried changing the coordinates but nothing happens!