Rumble
Rumble provides optional DualShock-style vibration. Always check capability
and keep gameplay fully usable without it.
| Method | Returns | Description |
|---|---|---|
Rumble.Play([lowFrequency, highFrequency, durationSeconds]) | boolean | Starts bounded vibration. |
Rumble.Stop() | none | Stops both motors. |
Rumble.IsSupported() | boolean | Reports controller and runtime support. |
function Impact(gameObjectId)
if Rumble.IsSupported() then
Rumble.Play(0.75, 1.0, 0.18)
end
end
Motor strengths and duration are clamped. Controller disconnects and digital pads can end or reject an effect; neither condition should block game progress.