diff options
author | Robert Brock <robert.brock@kdab.com> | 2016-05-03 13:55:25 +0100 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2016-05-06 16:56:40 +0000 |
commit | 948a270134f19a065bb73f74abd096b1fb5e1ac8 (patch) | |
tree | 041f9102912b23addc345147ca5bc43d68c9404b /examples/qt3d | |
parent | cd911ffa7d22ef6d15551515667f16abc58d38e6 (diff) |
Replaced FPS Camera with Orbit - Simple-qml
Simple-qml example now has OrbitCameraController
instead of FirstPersonCameraController.
Camera was also moved to -40 as the lightsource
was the otherside of the Torus.
Part of the examples cleanup.
Change-Id: Ib30b53c1e9d01c4dc09f7907683ea7ea2352c492
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'examples/qt3d')
-rw-r--r-- | examples/qt3d/simple-qml/main.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/qt3d/simple-qml/main.qml b/examples/qt3d/simple-qml/main.qml index fb18043c3..5eed965ca 100644 --- a/examples/qt3d/simple-qml/main.qml +++ b/examples/qt3d/simple-qml/main.qml @@ -64,12 +64,12 @@ Entity { aspectRatio: 16/9 nearPlane : 0.1 farPlane : 1000.0 - position: Qt.vector3d( 0.0, 0.0, 40.0 ) + position: Qt.vector3d( 0.0, 0.0, -40.0 ) upVector: Qt.vector3d( 0.0, 1.0, 0.0 ) viewCenter: Qt.vector3d( 0.0, 0.0, 0.0 ) } - FirstPersonCameraController { + OrbitCameraController { camera: camera } |