- Home /
Question by
yogee · Jan 30, 2017 at 06:21 AM ·
objecttouch controlsoculusrifthaptic
how to play OVRHaptic feedback ?
how to implement Oculus touch controller vibration , any example?
Comment
It also doesn't work for me (Using Unity 5.5.1). Did you already find a solution?
Best Answer
Answer by yogee · Jan 31, 2017 at 06:55 AM
Hey, i found the solution, its working for me :
public AudioClip VibeClip;
OVRHaptics.Channels[0].Mix(new OVRHapticsClip(VibeClip));
Answer by imagio1 · Jan 30, 2017 at 10:47 AM
I'm also struggling with this as a beginner, since there is almost nothing on the web. Tried building an array of sample bytes. Then I read that the recommended ways is to use an audioclip from a sound file. So I tried this, but still nothing:
OVRHapticsClip haptic = new OVRHapticsClip(audioClip);
OVRHaptics.RightChannel.Preempt(haptic);
$$anonymous$$ake sure that you're wearing the Oculus rift when this function is called. Haptics won't work otherwise