TriggerBody QML Type

Reports when objects enter a given volume. More...

Import Statement: import QtQuick3D.Physics
Since: Qt 6.4
Inherits:

PhysicsNode

Properties

Signals

Detailed Description

This type defines a trigger body. A trigger body is a body that does not interact physically but is used to detect when objects intersect with its volume.

Property Documentation

collisionCount : int

This property returns the number of bodies currently colliding with the trigger body.


Signal Documentation

bodyEntered(PhysicsNode *body)

This signal is emitted when the trigger body is penetrated by the specified body.

Note: The corresponding handler is onBodyEntered.


bodyExited(PhysicsNode *body)

This signal is emitted when the trigger body is no longer penetrated by the specified body.

Note: The corresponding handler is onBodyExited.


© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.