XrHapticFeedback QML Type

XR 컨트롤러의 햅틱 피드백을 제어합니다. 더 보기...

Import Statement: import QtQuick3D.Xr
Since: Qt 6.9
Inherits:

QtObject

Status: Technical Preview

속성

방법

자세한 설명

햅틱 피드백은 일반적으로 이벤트가 발생했을 때 촉각적인 경험을 제공하기 위해 컨트롤러에 짧은 진동을 적용하는 것을 포함합니다. 예를 들어 버튼을 터치하는 것과 같은 착각을 불러일으킬 수 있습니다.

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 [default: XrHapticFeedback.RisingEdge]

이 햅틱 피드백을 트리거하기 위한 조건입니다.

이 프로퍼티는 trigger 프로퍼티가 해석되는 방식을 지정합니다.

다음 중 하나일 수 있습니다:

상수설명
XrHapticFeedback.RisingEdgetriggerfalse 에서 true 로 변경될 때 햅틱 효과가 시작됩니다.
XrHapticFeedback.TrailingEdgetriggertrue 에서 false 로 변경될 때 햅틱 효과가 시작됩니다.

controller : enumeration

이 햅틱 피드백이 적용될 컨트롤러입니다.

다음 중 하나가 될 수 있습니다:

상수Value
XrHapticFeedback.LeftController
XrHapticFeedback.RightController
XrHapticFeedback.UnknownController

hapticEffect : XrHapticEffect

햅틱 피드백이 트리거될 때 컨트롤러에 적용되는 효과를 설명하는 속성입니다.


trigger : bool

햅틱 피드백 트리거

이 속성은 햅틱 효과가 반응할 대상을 정의합니다. condition 속성은 트리거가 해석되는 방식을 결정합니다.

startcondition참조하세요 .


메서드 문서

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.