object.particleDestructionByAge

Type Boolean
Object ParticleSystem
Library physics.*
Revision Current Public Release (2017.3068)
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