XrHapticFeedback QML Type
XR 컨트롤러의 햅틱 피드백을 제어합니다. 더 보기...
Import Statement: | import QtQuick3D.Xr |
Since: | Qt 6.9 |
Inherits: | |
Status: | Technical Preview |
속성
- condition : enumeration
- controller : enumeration
- hapticEffect : XrHapticEffect
- trigger : bool
방법
자세한 설명
햅틱 피드백은 일반적으로 이벤트가 발생했을 때 촉각적인 경험을 제공하기 위해 컨트롤러에 짧은 진동을 적용하는 것을 포함합니다. 예를 들어 버튼을 터치하는 것과 같은 착각을 불러일으킬 수 있습니다.
XrHapticFeedback을 사용하는 방법은 두 가지가 있습니다:
다음 코드는 someObject.hit
프로퍼티 값이 false
에서 true
로 변경되면 오른쪽 컨트롤러가 진동하도록 합니다:
XrHapticFeedback { controller: XrHapticFeedback.RightController condition: XrHapticFeedback.RisingEdge trigger: someObject.hit hapticEffect: XrSimpleHapticEffect { amplitude: 0.5 duration: 300 frequency: 3000 } }
프로퍼티 문서
condition : enumeration |
controller : enumeration |
이 햅틱 피드백이 적용될 컨트롤러입니다.
다음 중 하나가 될 수 있습니다:
상수 | Value |
---|---|
XrHapticFeedback.LeftController | |
XrHapticFeedback.RightController | |
XrHapticFeedback.UnknownController |
hapticEffect : XrHapticEffect |
햅틱 피드백이 트리거될 때 컨트롤러에 적용되는 효과를 설명하는 속성입니다.
trigger : bool |
메서드 문서
void start() |
햅틱 피드백 효과를 시작합니다.
void stop() |
햅틱 피드백 효과를 중지합니다.
© 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.