summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/torus-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/torus-qml/main.qml')
-rw-r--r--examples/qt3d/torus-qml/main.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/examples/qt3d/torus-qml/main.qml b/examples/qt3d/torus-qml/main.qml
index e7c4cc32e..59023189d 100644
--- a/examples/qt3d/torus-qml/main.qml
+++ b/examples/qt3d/torus-qml/main.qml
@@ -76,10 +76,14 @@ Entity {
Transform {
id: transform
- Scale { scale3D: Qt.vector3d(1.5, 1, 0.5) }
- Rotate {
- angle: 45
- axis: Qt.vector3d(1, 0, 0)
+ matrix: {
+ var m = Qt.matrix4x4(1, 0, 0, 0,
+ 0, 1, 0, 0,
+ 0, 0, 1, 0,
+ 0, 0, 0, 1);
+ m.rotate(45, Qt.vector3d(1, 0, 0));
+ m.scale(Qt.vector3d(1.5, 1, 0.5))
+ return m;
}
}