TriggerBody QML Type

Reports when objects enter a given volume. 更多...

导入语句: import QtQuick3D.Physics
Since: Qt 6.4
继承:

PhysicsNode

特性

信号

详细描述

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.

特性文档编制

collisionCount : int

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


信号文档编制

bodyEntered ( PhysicsNode * body )

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

注意: 相应处理程序是 onBodyEntered .

bodyExited ( PhysicsNode * body )

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

注意: 相应处理程序是 onBodyExited .

内容