• Articles
  • Tutorials
  • Api Documentation
  • Api Documentation

    Show / Hide Table of Contents

    Interface ISteamVR_Action_Vibration

    Vibration actions are used to trigger haptic feedback in vr controllers.

    Inherited Members
    ISteamVR_Action.GetActive(SteamVR_Input_Sources)
    ISteamVR_Action.GetShortName()
    ISteamVR_Action_Source.active
    ISteamVR_Action_Source.activeBinding
    ISteamVR_Action_Source.lastActive
    ISteamVR_Action_Source.lastActiveBinding
    ISteamVR_Action_Source.fullPath
    ISteamVR_Action_Source.handle
    ISteamVR_Action_Source.actionSet
    ISteamVR_Action_Source.direction
    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.

    In This Article
    • Methods
      • Execute(Single, Single, Single, Single, SteamVR_Input_Sources)
    Back to top Copyright (c) Valve Corporation, All rights reserved.