Skip to content

Instantly share code, notes, and snippets.

@robertcedwards
Created December 29, 2015 20:06
Show Gist options
  • Save robertcedwards/8ab6af9ae1a613051f12 to your computer and use it in GitHub Desktop.
Save robertcedwards/8ab6af9ae1a613051f12 to your computer and use it in GitHub Desktop.
Adding haptic when trigger is pulled
if(SteamVR_Controller.Input(deviceIndex).GetPressDown(SteamVR_Controller.ButtonMask.Trigger))
SteamVR_Controller.Input(deviceIndex).TriggerHapticPulse(100);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment