diff options
author | Sean Harmer <sean.harmer@kdab.com> | 2015-11-11 16:35:30 +0000 |
---|---|---|
committer | Sean Harmer <sean.harmer@kdab.com> | 2015-11-20 18:28:13 +0000 |
commit | 8f6462aa1f0f29c8f39d25214c4ccf802824f2d5 (patch) | |
tree | 87810d10c3882480a402be1130a29a66e87a6e06 /examples/qt3d/gltf | |
parent | a081396ccea6903ee9bd9c07a3c0694f92f91e1f (diff) |
Adapt examples to use new quaternion helpers
Change-Id: If9100fbc1870c09d90c9c1df102cf9c0503b96cb
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
Diffstat (limited to 'examples/qt3d/gltf')
-rw-r--r-- | examples/qt3d/gltf/Wine.qml | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/examples/qt3d/gltf/Wine.qml b/examples/qt3d/gltf/Wine.qml index 676cffb77..e743ad2d9 100644 --- a/examples/qt3d/gltf/Wine.qml +++ b/examples/qt3d/gltf/Wine.qml @@ -48,15 +48,9 @@ Entity { components: [ Transform { - matrix: { - var m = Qt.matrix4x4(); - m.translate(root.position); - m.rotate(root.angleX, Qt.vector3d(1, 0, 0)) - m.rotate(root.angleY, Qt.vector3d(0, 1, 0)) - m.rotate(root.angleZ, Qt.vector3d(0, 0, 1)) - m.scale(root.scale); - return m; - } + translation: root.position + rotation: fromEulerAngles(root.angleX, root.angleY, root.angleZ) + scale: root.scale }, SceneLoader { source: "qrc:/assets/gltf/wine/wine.gltf" |