shockwave

A tap sends a ring out across the scene: shapes it crosses are shoved outward, flash, and spring back.

Usage

Set interaction="shockwave" on the scene. Interactions are scene rules: they work on every object inside, whatever its type. Several run in the order written.

Options

AttributeTypeDefaultRangeDescription
shockwave-radiusnumber48060 to 1600How far the ring travels (px)
shockwave-strengthnumber0.70 to 1Shove strength
shockwave-speednumber900100 to 3000Ring speed (px per second)

License

MIT. Use it anywhere, credit appreciated.