ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.12k stars 1.28k forks source link

Rumble amplitude? Unity3D #111

Open grobm opened 8 years ago

grobm commented 8 years ago

I am working in Unity3D, I am currently using StreamVR_Controller.Input(index).TriggerHapticPulse(ms#); function... I am looking to change the amplitude of the rumble... but not finding documents related to these function calls.

Advise on were to look? I have looked over the Controller code here but it not apparent.

odensc commented 8 years ago

The duration argument is actually incorrectly labeled and is the haptic strength from my testing. You need to call TriggerHapticPulse on Update() for however long you want, using the duration argument as the strength. (at least in Unity)