Host typegenerated
Particles
A particle emitter on an object: smoke, sparks, embers. It throws rate particles a second while it plays. An object's own emitter is particles; another, named one is particles("surge").
7 members · engine 0.1.0
Particles.emit(count: number) -> numberThrows that many particles at once, whether or not it is playing, and gives how many it threw: fewer when its pool is full.Particles.lifetime: numberHow many seconds a particle lives.Particles.play() -> numberStarts throwing particles. Gives 1.Particles.rate: numberHow many particles it throws a second while it plays.Particles.size: numberHow big a particle is when thrown, in world units.Particles.speed: numberHow fast a particle leaves, in world units a second.Particles.stop() -> numberStops throwing particles; those already out live on. Gives 1.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b