TriggerBody QML Type
オブジェクトが指定されたボリュームに入ったことを報告します。詳細...
Import Statement: | import QtQuick3D.Physics |
Since: | Qt 6.4 |
Inherits: |
プロパティ
- collisionCount : int
信号
- bodyEntered(PhysicsNode *body)
- bodyExited(PhysicsNode *body)
詳細説明
この型はトリガーボディを定義する。トリガーボディは、物理的な相互作用はしないが、オブジェクトがそのボリュームと交差するときに検出するために使用されるボディである。
プロパティの説明
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.