Up to date

This page is up to date for Godot 4.3. If you still find outdated information, please open an issue.

OpenXRAnalogThresholdModifierยถ

Inherits: OpenXRActionBindingModifier < OpenXRBindingModifier < Resource < RefCounted < Object

The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.

Descriptionยถ

The analog threshold binding modifier can modify a float input to a boolean input with specified thresholds.

See XR_VALVE_analog_threshold for in-depth details.

Propertiesยถ

OpenXRHapticBase

off_haptic

float

off_threshold

0.4

OpenXRHapticBase

on_haptic

float

on_threshold

0.6


Property Descriptionsยถ

OpenXRHapticBase off_haptic ๐Ÿ”—

Haptic pulse to emit when the user releases the input.


float off_threshold = 0.4 ๐Ÿ”—

  • void set_off_threshold(value: float)

  • float get_off_threshold()

When our input value falls below this, our output becomes false.


OpenXRHapticBase on_haptic ๐Ÿ”—

Haptic pulse to emit when the user presses the input.


float on_threshold = 0.6 ๐Ÿ”—

  • void set_on_threshold(value: float)

  • float get_on_threshold()

When our input value is equal or larger than this value, our output becomes true. It stays true until it falls under the off_threshold value.