- Qt 6.12
- Qt Quick 3D Physics
- Qt Quick 3D Physics Examples and Tutorials
- Qt Quick 3D Physics - Cannon Example
- Qt Quick 3D Physics | Commercial or GPLv3

# Qt Quick 3D Physics - Cannon Example

     // Copyright (C) 2022 The Qt Company Ltd.
     // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
     import QtQuick

     Item {
         id: crossHair
         width: 31
         height: width
         readonly property real halfSize: width * 0.5 - 0.5
         Rectangle {
             width: crossHair.halfSize
             height: 1
             anchors.left: parent.left
             anchors.verticalCenter: parent.verticalCenter
             color: "black"
         }
         Rectangle {
             width: crossHair.halfSize
             height: 1
             anchors.right: parent.right
             anchors.verticalCenter: parent.verticalCenter
             color: "black"
         }
         Rectangle {
             width: 1
             height: crossHair.halfSize
             anchors.horizontalCenter: parent.horizontalCenter
             anchors.top: parent.top
             color: "black"
         }
         Rectangle {
             width: 1
             height: crossHair.halfSize
             anchors.horizontalCenter: parent.horizontalCenter
             anchors.bottom: parent.bottom
             color: "black"
         }
     }