blob: ae17bcc6a04394f5103ffaf09d13ecb9cf0d301a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
import Qt3D.Core 2.0
import Qt3D.Render 2.0
Entity {
id: root
property real xPos: 0
property real yPos: 0
property real zPos: 0
property Material material
SphereMesh {
id: sphereMesh
rings: 15
slices: 16
radius: 0.5
}
Transform {
id: sphereTransform
Translate {
dx: xPos
dy: yPos
dz: zPos
}
}
components: [
sphereMesh,
sphereTransform,
material
]
}
|