TriggerBody QML Type

报告对象进入给定体积的时间。更多

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

PhysicsNode

属性

信号

详细说明

该类型定义了触发体。触发体是一种不进行物理交互的体,但用于检测物体是否与其体积相交。

属性文档

collisionCount : int

该属性返回当前与触发体发生碰撞的物体数量。


信号文档

bodyEntered(PhysicsNode *body)

当触发体被指定的body 穿透时会发出该信号。

注: 相应的处理程序为onBodyEntered


bodyExited(PhysicsNode *body)

当触发体不再被指定的body 穿透时,会发出该信号。

注: 相应的处理程序是onBodyExited


© 2025 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.