void TriggerHapticVibration( float duration, float frequency, float amplitude )

book_4_sparkGenerated
code_blocksInput

Description

The TriggerHapticVibration method is used to initiate a haptic feedback event on a VR controller. This method is marked as obsolete, and it is recommended to use TriggerHaptics instead for more advanced haptic feedback capabilities.

Usage

To use the TriggerHapticVibration method, you need to specify the duration, frequency, and amplitude of the vibration. These parameters control how long the vibration lasts, how fast it oscillates, and how strong the vibration feels, respectively.

Note that this method is obsolete, and you should consider using TriggerHaptics for new implementations.

Example

// Example usage of TriggerHapticVibration (obsolete)
VRController controller = new VRController();

// Trigger a haptic vibration with a duration of 1 second,
// a frequency of 150 Hz, and an amplitude of 0.5
controller.TriggerHapticVibration(1.0f, 150.0f, 0.5f);