VR4Medical/ICI/Library/PackageCache/com.unity.xr.interaction.toolkit@42ef3600567b/Documentation~/simple-haptic-feedback.md
2025-07-29 13:45:50 +03:00

24 lines
1.7 KiB
Markdown

---
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](images/simple-haptic-feedback.png)
| **Property** | **Description** |
|---|---|
| **Interactor Source** | The interactor component to listen to for its interaction events. |
| **Haptic Impulse Player** | The [Haptic Impulse Player](haptic-impulse-player.md) 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. |