natiny.particles.simulate

Lua
natiny.particles.simulate(particles, seconds)

Runs the system forward by seconds immediately, including spawning - a fire that is already burning when the scene opens.

Parameters

Name Type Description
particles number Particle system handle from natiny.particles.create
seconds number Time to run forward, in seconds

Example

Lua
natiny.particles.simulate(campfire, 2.0)