Warning, /rolisteam/rolisteam/src/libraries/qml_views/views/DiceField.qml is written in an unsupported language. File is not indexed.

0001 import QtQuick
0002 import QtQuick3D
0003 
0004 View3D {
0005 
0006     environment: SceneEnvironment {
0007                clearColor: "skyblue"
0008                backgroundMode: SceneEnvironment.Color
0009            }
0010 
0011     PerspectiveCamera {
0012         position: Qt.vector3d(0, 200, 300)
0013         eulerRotation.x: -30
0014     }
0015 
0016     DirectionalLight {
0017         eulerRotation.x: -30
0018         eulerRotation.y: -70
0019     }
0020 
0021     Model {
0022         position: Qt.vector3d(0, -200, 0)
0023         source: "#Cylinder"
0024         scale: Qt.vector3d(2, 0.2, 1)
0025         materials: [ DefaultMaterial {
0026                 diffuseColor: "red"
0027             }
0028         ]
0029     }
0030 
0031     Model {
0032         position: Qt.vector3d(0, 150, 0)
0033         source: "#Sphere"
0034 
0035         materials: [ DefaultMaterial {
0036                 diffuseColor: "blue"
0037             }
0038         ]
0039 
0040         SequentialAnimation on y {
0041             loops: Animation.Infinite
0042             NumberAnimation {
0043                 duration: 3000
0044                 to: -150
0045                 from: 150
0046                 easing.type:Easing.InQuad
0047             }
0048             NumberAnimation {
0049                 duration: 3000
0050                 to: 150
0051                 from: -150
0052                 easing.type:Easing.OutQuad
0053             }
0054         }
0055     }
0056 }