TriggerBody QML Type▲
-
Import Statement: import QtQuick3D.Physics
-
Since:: Qt 6.4
-
Inherits:: PhysicsNode
I. 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.
II. Property Documentation▲
II-1. collisionCount : int▲
This property returns the number of bodies currently colliding with the trigger body.
III. Signal Documentation▲
III-1. bodyEntered(PhysicsNode *body)▲
This signal is emitted when the trigger body is penetrated by the specified body.
The corresponding handler is onBodyEntered.
III-2. bodyExited(PhysicsNode *body)▲
This signal is emitted when the trigger body is no longer penetrated by the specified body.
The corresponding handler is onBodyExited.