Solved
UPDATE: Getting the Touch haptics to activate? SOLVED
Hi, all. I've been scouring the web all day for Touch haptic examples in Unity, but it's been difficult finding any beginner-level example scripts.
Here's what I have roughly in "MyGunScript" that is attached to my "Rifle" game object:
Any clue as to what I'm doing wrong here?
Thanks!
Here's what I have roughly in "MyGunScript" that is attached to my "Rifle" game object:
And then I dragged a very loud gun shot sound into the public "myAudioClip" in the script. However, I feel no vibration in either left or right Touch controllers when I pull the trigger during testing.public class MyGunScript{
OVRHapticsClip myHapticsClip;
public AudioClip myAudioClip;
void Start(){
myHapticsClip = new OVRHapticsClip (myAudioClip);
}
void Update(){
if (OVRInput.Get (OVRInput.Button.One)){
OVRHaptics.RightChannel.Mix (myHapticsClip);
}
}
}
Any clue as to what I'm doing wrong here?
Thanks!
