-
-
Notifications
You must be signed in to change notification settings - Fork 2
Haptic Impulse Trigger
eisclimber edited this page Jan 18, 2024
·
1 revision
class in ExPresSXR.Interaction / Extends MonoBehaviour
Component added via Component Menu
Sends an haptic impulse to the controller which can be also be triggered via code. If a hovering controller should automatically detected as target this Component can be added to a XRBaseInteractable
-Component with findTargetOnHover
enabled.
-
bool findTargetOnHover
: If enabled and attached to a XRBaseInteractable automatically updates the hapticTarget with the latest hovering controller. -
XRBaseController hapticTarget
: Target Controller to receive haptic events.
-
void PerformHapticEventOnCurrentTarget(float amplitude, float duration, XRBaseController targetOverride = null)
: Use this function to send haptic Events to the current hapticTarget. Note: If targetOverride is active the hapticTarget will be updated automatically.
-
void PerformHapticEvent(float strength, float duration, XRBaseController target)
: Triggers an Haptic Event for a duration with the given strength on the target (if possible).
Autor: Luca 'eisclimber' Dreiling; License: MIT
- Getting Started
- Development and Contribution
- Misc
- Experimentation
- Data Gatherering
- Eye Tracking
- ExPresS XR Rig
- Interaction
- Base Button
- Button Quiz
- Collision Hand Rumbler
- Collision Sound Emitter
- Exit Game Interactable (Script Deprecated)
- Interactables
- Haptic Impulse Trigger
- Socket Interactors
- Inverse Kinematics
- Localization
- Minigames
- Coin Scale
- Coin Throw
- Sword Cleaning
- Misc
- Movement
- Presentation
- UI