このページでは

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.