File: Box.qml

package info (click to toggle)
qt6-quick3dphysics 6.9.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 22,116 kB
  • sloc: cpp: 261,267; python: 40; makefile: 21
file content (21 lines) | stat: -rw-r--r-- 470 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// Copyright (C) 2024 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only

import QtQuick
import QtQuick3D
import QtQuick3D.Physics

DynamicRigidBody {
    Model {
        source: "#Cube"
        materials: PrincipledMaterial {
            baseColor: "red"
        }
    }

    sendContactReports: true
    receiveContactReports: true
    onBodyContact: (body, positions, impulses, normals) => {}

    collisionShapes: BoxShape {}
}