Constructor
new SystemVibration()
- Description:
- Creates a new vibration system.
- Source:
Example
const system = new SystemVibration();
Members
(readonly) DELAYVIBRATIONEND :number
- Description:
- Stores the delay before a vibration ends.
- Source:
Stores the delay before a vibration ends.
Type:
- number
Methods
onInitiate()
- Description:
- Called when the system is being initiated.
- Source:
onTerminate() → {void|Promise.<void>}
- Description:
- Called when the system is being terminated.
- Source:
Returns:
- Type
- void | Promise.<void>
onTick($parameters)
- Description:
- Called when the system is being updated by one tick update.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
$parameters |
Object | The given parameters. |
$parameters.$stage |
Stage | The stage on which to execute the system. |
$parameters.$timetick |
number | The tick duration (in ms). |