Reports when objects enter a given volume. 更多...
import 语句: | import QtQuick3D.Physics |
Since: | Qt 6.4 |
继承: |
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
.