이 페이지에서

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.