Table of Contents

Class OpenXRHapticVibration

Vibration haptic feedback.

Inheritance
OpenXRHapticVibration

Remarks

This haptic feedback resource makes it possible to define a vibration based haptic feedback pulse that can be triggered through actions in the OpenXR action map.

Properties

amplitude

The amplitude of the pulse between 0.0 and 1.0.

var amplitude : float = 1.0

Property Value

float

Remarks

  • void set_amplitude(float value)
  • float get_amplitude

duration

The duration of the pulse in nanoseconds. Use -1 for a minimum duration pulse for the current XR runtime.

var duration : int = -1

Property Value

int

Remarks

  • void set_duration(int value)
  • int get_duration

frequency

The frequency of the pulse in Hz. 0.0 will let the XR runtime chose an optimal frequency for the device used.

var frequency : float = 0.0

Property Value

float

Remarks

  • void set_frequency(float value)
  • float get_frequency