Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 1.69 KB

simple-haptic-feedback.md

File metadata and controls

23 lines (20 loc) · 1.69 KB
uid
xri-simple-haptic-feedback

Simple Haptic Feedback

Component that responds to select and hover events by playing haptic impulses (in other words, vibrating the controller).

SimpleHapticFeedback component

Property Description
Interactor Source The interactor component to listen to for its interaction events.
Haptic Impulse Player The Haptic Impulse Player component to use to play haptic impulses.
Play Select Entered Whether to play a haptic impulse when the interactor starts selecting an interactable.
Amplitude The desired motor amplitude.
Duration The desired duration of the impulse in seconds.
Frequency The desired frequency of the impulse in Hz. The default value of 0 means to use the default frequency of the device.
Play Select Exited Whether to play a haptic impulse when the interactor stops selecting an interactable without being canceled.
Play Select Canceled Whether to play a haptic impulse when the interactor stops selecting an interactable due to being canceled.
Play Hover Entered Whether to play a haptic impulse when the interactor starts hovering over an interactable.
Play Hover Exited Whether to play a haptic impulse when the interactor stops hovering over an interactable without being canceled.
Play Hover Canceled Whether to play a haptic impulse when the interactor stops hovering over an interactable due to being canceled.
Allow Hover Haptics While Selecting Whether to allow hover haptics to play while the interactor is selecting an interactable.