Class HapticImpulseData
Data needed to describe a haptic impulse.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.Feedback
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[Serializable]
public class HapticImpulseData
Properties
amplitude
The desired motor amplitude that should be within a [0-1] range.
Declaration
public float amplitude { get; set; }
Property Value
Type | Description |
---|---|
float |
duration
The desired duration of the impulse in seconds.
Declaration
public float duration { get; set; }
Property Value
Type | Description |
---|---|
float |
frequency
The desired frequency of the impulse in Hz. The default value of 0 means to use the default frequency of the device. Not all devices or XR Plug-ins support specifying a frequency.
Declaration
public float frequency { get; set; }
Property Value
Type | Description |
---|---|
float |