XrSimpleHapticEffect QML Type

Allows setting controller haptics using amplitude, duration and frequency. 更多...

import 語句: import QtQuick3D.Xr
Since: Qt 6.9
繼承:

XrHapticEffect

狀態: 技術預覽

特性

詳細描述

XrSimpleHapticEffect {
    amplitude: 0.5
    duration: 300
    frequency: 3000
}
					

另請參閱 XrHapticFeedback .

特性文檔編製

amplitude() : bool [default: 0.5]

Defines the amplitude of the effect's vibration. Acceptable values are from 0.0 to 1.0

duration() : bool [default: 30]

Defines the duration of the haptic effect in milliseconds.

frequency() : bool [default: 3000]

Defines the frequency of the haptic effect in Hz