toys.module
This package holds more than this page lists. See all of its files in its world.
README.md
toys
The courseToys API, require("courseToys.toys"): spawn fun physics toys (19 kinds, 11 themed looks) along any course and hear what happens to them. Toys.spawn(kind, opts), Toys.despawn, Toys.clear, Toys.on(event, fn) for hit, bounce, break, collect, enter, exit, boost, slowmo and surprise, Toys.setBodyGroup so a ragdoll's bodies are bounced and boosted together, Toys.setFilter, Toys.populate(slots, opts) to fill a course from generic placement slots, Toys.kinds(), Toys.themes(), Toys.stats(). Called by game code (level generators, scene entrypoints, components); every toy is local to the peer unless spawned with synced = true. See the package README for every kind's params and events.