object.particleDestructionByAge

Type Boolean
Object ParticleSystem
Library physics.*
Revision Release 2024.3703
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