- Qt 6.8
- Qt Quick 3D Physics
- Qt Quick 3D Physics Examples and Tutorials
- Qt Quick 3D Physics - Compound Shapes Example
- Qt Quick 3D Physics | Commercial or GPLv3

# Qt Quick 3D Physics - Compound Shapes Example

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

     import QtQuick
     import QtQuick3D
     import QtQuick3D.Physics

     DynamicRigidBody {
         scale: Qt.vector3d(100, 100, 100)
         property color color: "white"
         PrincipledMaterial {
             id: _material
             baseColor: color
             metalness: 1.0
             roughness: 0.5
         }

         Model {
             source: "meshes/ring.mesh"
             materials: [_material]
         }

         collisionShapes: [
             ConvexMeshShape {
                 source: "meshes/segmentedRing_001.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_002.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_003.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_004.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_005.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_006.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_007.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_008.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_009.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_010.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_011.mesh"
             },
             ConvexMeshShape {
                 source: "meshes/segmentedRing_012.mesh"
             }
         ]
     }