From 31f9eb2e3d533e72a983275b0527c24f079ff379 Mon Sep 17 00:00:00 2001 From: Robert Brock Date: Tue, 5 Jan 2016 09:02:14 +0000 Subject: Camera moved - custom-mesh-cpp From z: -40 to z: 40 Change-Id: Ic764678ffd12c9ded39bed6a8e04a8fd6b382f59 Task-number: QTBUG-49800 Reviewed-by: Sean Harmer --- examples/qt3d/custom-mesh-cpp/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/qt3d/custom-mesh-cpp/main.cpp b/examples/qt3d/custom-mesh-cpp/main.cpp index e7b804a28..804d4b79d 100644 --- a/examples/qt3d/custom-mesh-cpp/main.cpp +++ b/examples/qt3d/custom-mesh-cpp/main.cpp @@ -79,7 +79,7 @@ int main(int argc, char* argv[]) Qt3DCore::QCamera *cameraEntity = new Qt3DCore::QCamera(rootEntity); cameraEntity->lens()->setPerspectiveProjection(45.0f, 16.0f/9.0f, 0.1f, 1000.0f); - cameraEntity->setPosition(QVector3D(0, 0, -40.0f)); + cameraEntity->setPosition(QVector3D(0, 0, 40.0f)); cameraEntity->setUpVector(QVector3D(0, 1, 0)); cameraEntity->setViewCenter(QVector3D(0, 0, 0)); input->setCamera(cameraEntity); -- cgit v1.2.3