Search Unity

oculus vr haptic feedback

Discussion in 'VR' started by unity_iN7PWONs9N7Nwg, Jul 16, 2019.

  1. unity_iN7PWONs9N7Nwg

    unity_iN7PWONs9N7Nwg

    Joined:
    Feb 10, 2019
    Posts:
    1
    Hello.

    i am making a drumming game for oculus vr. When i make code for haptic feedback, i cant find any way to change the lenght(amount of seconds) of the vibration. is there anyway to change it?


    here is the code
    Code (CSharp):
    1.  
    2. private void OnTriggerEnter(Collider other)
    3.     {
    4.  
    5.         if(other.tag == "DrumStickHead")
    6.         {
    7.             OVRInput.SetControllerVibration(1, 1, OVRInput.Controller.RTouch);      
    8.         }
    9.  
    10.         if (other.tag == "DrumStickHead2")
    11.         {
    12.             OVRInput.SetControllerVibration(1, 1, OVRInput.Controller.LTouch);
    13.         }
    14.     }