rumble

A buzz in the player's hands when something happens to them. One call shakes whatever they are holding: a gamepad's two motors (the strong, low one and the weak, high one) or a headset's controllers.

// from any scene child, once it has an owner
owner.rumble('hit')                              // a named effect
owner.rumble({ strong: 0.8, weak: 0.3, ms: 200 }) // or your own
owner.rumble('shot', 'right')                    // one hand, in a headset

The biped rumbles when it is the player and is hurt, lands hard, dies from a fall or lands a blow; a vehicle when it hits something; the pad's UI focus gives a small tick each time it moves. <tosi-b3d rumble-strength="0"> turns it off for a scene (and 0.5 halves it).

Effects

name strong weak ms for
tick 0 0.25 25 the UI focus moving
shot 0.3 0.6 60 firing
blow 0.5 0.4 80 a melee blow landing
hit 0.7 0.5 150 being hurt
landing 0.8 0.3 180 a hard landing
crash 1 0.8 350 a crash, or a fall that kills

Where it works

A pad rumbles through the Gamepad API's vibrationActuator (Chrome, Edge and Safari; Firefox does not offer it by default). A headset's controllers buzz through WebXR (pulse on each controller), which has one motor, so it takes the larger of the two. Anywhere else nothing happens and nothing fails.