Constructor
new Vibration($parameters)
- Description:
- Creates a new vibration.
- Source:
Example
const vibration = new Vibration({
$duration: 200,
$intensityFrequencyHigh: 0.8,
$intensityFrequencyLow: 0.2
});
Parameters:
Name | Type | Description |
---|---|---|
$parameters |
Object | The given parameters. |
$parameters.$duration |
number | The duration (in ms). |
$parameters.$intensityFrequencyHigh |
number | The intensity of the high-frequency (weak) rumble motors (with value in [0, 1] range). |
$parameters.$intensityFrequencyLow |
number | The intensity of the low-frequency (strong) rumble motors (with value in [0, 1] range). |
Members
duration :number
- Description:
- Gets the duration (in ms).
- Source:
Gets the duration (in ms).
Type:
- number
intensityFrequencyHigh :number
- Description:
- Gets the intensity of the high-frequency (weak) rumble motors (with value in [0, 1] range).
- Source:
Gets the intensity of the high-frequency (weak) rumble motors (with value in [0, 1] range).
Type:
- number
intensityFrequencyLow :number
- Description:
- Gets the intensity of the low-frequency (strong) rumble motors (with value in [0, 1] range).
- Source:
Gets the intensity of the low-frequency (strong) rumble motors (with value in [0, 1] range).
Type:
- number