OpenXRHapticVibration
Inherits: OpenXRHapticBase < Resource < RefCounted < Object
Description
Section titled “Description”Vibration haptic feedback.
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
Section titled “Properties”| Type | Name | Default |
|---|---|---|
| float | amplitude |
1.0 |
| int | duration |
-1 |
| float | frequency |
0.0 |
Property descriptions
Section titled “Property descriptions”amplitude
float amplitude = 1.0
The amplitude of the pulse between 0.0 and 1.0.
duration
int duration = -1
The duration of the pulse in nanoseconds. Use -1 for a minimum duration pulse for the current XR runtime.
frequency
float frequency = 0.0
The frequency of the pulse in Hz. 0.0 will let the XR runtime chose an optimal frequency for the device used.
