Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
OpenXRAnalogThresholdModifier
继承: OpenXRActionBindingModifier < OpenXRBindingModifier < Resource < RefCounted < Object
模拟阈值绑定修改器能够根据指定的阈值将 float 输入修改为布尔值输入。
描述
模拟阈值绑定修改器能够根据指定的阈值将 float 输入修改为布尔值输入。
属性
|
||
|
属性说明
OpenXRHapticBase off_haptic 🔗
void set_off_haptic(value: OpenXRHapticBase)
OpenXRHapticBase get_off_haptic()
用户松开输入时发出的触觉脉冲。
输入值低于此值时,输出变为 false。
OpenXRHapticBase on_haptic 🔗
void set_on_haptic(value: OpenXRHapticBase)
OpenXRHapticBase get_on_haptic()
用户按下输入时发出的触觉脉冲。
输入大于等于此值时,输出变为 true。直到低于 off_threshold 都会保持为 true。