Skip to main content

Rumble

Rumble provides optional DualShock-style vibration. Always check capability and keep gameplay fully usable without it.

MethodReturnsDescription
Rumble.Play([lowFrequency, highFrequency, durationSeconds])booleanStarts bounded vibration.
Rumble.Stop()noneStops both motors.
Rumble.IsSupported()booleanReports 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.