このページでは

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 です。

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