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 control.
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 control.
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: Since this method is obsolete, consider using TriggerHaptics
for new implementations.
// 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);