Interface ISteamVR_Action_Vibration
Vibration actions are used to trigger haptic feedback in vr controllers.
Inherited Members
Namespace: Valve.VR
Assembly: Assembly-CSharp.dll
Syntax
public interface ISteamVR_Action_Vibration : ISteamVR_Action_Out, ISteamVR_Action, ISteamVR_Action_Out_Source, ISteamVR_Action_Source
Methods
Execute(Single, Single, Single, Single, SteamVR_Input_Sources)
Trigger the haptics at a certain time for a certain length
Declaration
void Execute(float secondsFromNow, float durationSeconds, float frequency, float amplitude, SteamVR_Input_Sources inputSource)
Parameters
Type | Name | Description |
---|---|---|
System.Single | secondsFromNow | How long from the current time to execute the action (in seconds - can be 0) |
System.Single | durationSeconds | How long the haptic action should last (in seconds) |
System.Single | frequency | How often the haptic motor should bounce (0 - 320 in hz. The lower end being more useful) |
System.Single | amplitude | How intense the haptic action should be (0 - 1) |
SteamVR_Input_Sources | inputSource | The device you would like to execute the haptic action. Any if the action is not device specific. |