Skip to content

Haptic Impulse Trigger

eisclimber edited this page Jan 18, 2024 · 1 revision

Base Button

class in ExPresSXR.Interaction / Extends MonoBehaviour
Component added via Component Menu

Description

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.

Members

Public Properties

  • 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.

Public Methods

  • 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.

Static Methods

  • void PerformHapticEvent(float strength, float duration, XRBaseController target): Triggers an Haptic Event for a duration with the given strength on the target (if possible).

ExPresS XR Wiki

Tutorial Pages

Code Documentation

Clone this wiki locally