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.