object.particleDestructionByAge

Type Boolean
Object ParticleSystem
Library physics.*
Revision 2017.3178
Keywords particleDestructionByAge, physics, LiquidFun
See also physics.newParticleSystem()

Overview

This boolean property controls the destruction of particles based on their age. This value is true by default.

Example

local particleSystem = physics.newParticleSystem(
    {
        filename = "particle.png",
        radius = 2
    }
)

particleSystem.particleDestructionByAge = true