summaryrefslogtreecommitdiffstats
path: root/examples/qt3d/wave
diff options
context:
space:
mode:
Diffstat (limited to 'examples/qt3d/wave')
-rw-r--r--examples/qt3d/wave/Wave.qml11
1 files changed, 3 insertions, 8 deletions
diff --git a/examples/qt3d/wave/Wave.qml b/examples/qt3d/wave/Wave.qml
index 0ec12db10..3af082ded 100644
--- a/examples/qt3d/wave/Wave.qml
+++ b/examples/qt3d/wave/Wave.qml
@@ -59,14 +59,9 @@ Entity {
Transform {
id: transform
- matrix: {
- var m = Qt.matrix4x4();
- m.translate(Qt.vector3d(root.x, root.y, root.z));
- m.rotate(root.phi, Qt.vector3d(0, 1, 0));
- m.rotate(root.theta, Qt.vector3d(1, 0, 0));
- m.scale(root.scale);
- return m;
- }
+ translation: Qt.vector3d(root.x, root.y, root.z);
+ rotation: fromEulerAngles(root.theta, root.phi)
+ scale: root.scale
}
WaveMaterial {