aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/callback_create_delete_node/Box.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/callback_create_delete_node/Box.qml')
-rw-r--r--tests/auto/callback_create_delete_node/Box.qml21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/callback_create_delete_node/Box.qml b/tests/auto/callback_create_delete_node/Box.qml
new file mode 100644
index 0000000..a8137b3
--- /dev/null
+++ b/tests/auto/callback_create_delete_node/Box.qml
@@ -0,0 +1,21 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+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 {}
+}