From cf52d92133a356784e0f784e810b232290d8d3da Mon Sep 17 00:00:00 2001 From: Sean Harmer Date: Wed, 11 Nov 2015 12:18:26 +0000 Subject: Adapt examples to use rotation property and quaternion helper This covers all examples that can use the standard S, R, T order of transformations with a single rotation. Change-Id: Ief6741f9605742c545d8ef2be9bf8ab65164835d Reviewed-by: Paul Lemire --- examples/qt3d/wave/Background.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'examples/qt3d/wave') diff --git a/examples/qt3d/wave/Background.qml b/examples/qt3d/wave/Background.qml index 7c6ed4952..c475b0e9a 100644 --- a/examples/qt3d/wave/Background.qml +++ b/examples/qt3d/wave/Background.qml @@ -72,14 +72,7 @@ Entity { Transform { // Rotate the plane so that it faces us - matrix: { - var m = Qt.matrix4x4(1, 0, 0, 0, - 0, 1, 0, 0, - 0, 0, 1, 0, - 0, 0, 0, 1); - m.rotate(90, Qt.vector3d(1, 0, 0)); - return m; - } + rotation: fromAxisAndAngle(Qt.vector3d(1, 0, 0), 90) }, Material { -- cgit v1.2.3