2023-10-06 11:12:59 +00:00
|
|
|
// Copyright (C) 2023 The Qt Company Ltd.
|
2023-12-21 11:59:42 +00:00
|
|
|
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
|
2023-10-06 11:12:59 +00:00
|
|
|
|
|
|
|
import QtQuick
|
|
|
|
|
|
|
|
Item {
|
|
|
|
width: Constants.width
|
|
|
|
height: Constants.height
|
|
|
|
|
|
|
|
property vector3d position: Qt.vector3d(0, 0, 0)
|
|
|
|
property vector3d rotation: Qt.vector3d(0, 0, 0)
|
|
|
|
|
|
|
|
function resetPosition(pos) {
|
|
|
|
pos = position
|
|
|
|
}
|
|
|
|
|
|
|
|
function resetRotation(rot) {
|
|
|
|
rot = rotation
|
|
|
|
}
|
|
|
|
}
|