- Home /
How to add haptic feedback to controller using Ovr
Hey everyone,as i'm still new with unity, i'm trying to make my controller(rift controller) vibrate when my hand grabs an object, and when a certain event is trigger ( on enter) but i can't seem to understand how.
i tried something using tutorials on the web:
void VibrationOnEnter(int interation, int frequency,int strenght /*OVRInput.Controller ctrl*/) { and Using OVRHaptics.preempt here }
but unity tells me that OVRinput and OVRHaptics doens't exist in this namespace. But i do have OVr in my project as i use the Ovr objects for the camera rig etc.. I did find 2 C# files names OVRHaptics and OVRHapticsClip but i can't figure how to use them.
My question is : do i need to import something to be able to use OVRinput, Or that OVRHaptics file given by unity Or does anyone knows a better way to make my controller vibrate when i want it to ?
thanks a lot for the help !