object.particleRadius

Type Number
Object ParticleSystem
Library physics.*
Revision 2017.3060
Keywords particleRadius, physics, LiquidFun
See also physics.newParticleSystem()
object.imageRadius

Overview

This numerical property controls the radius of particles. This value is 1.0 by default.

Gotchas

If you change the radius during execution, existing particles may explode, shrink, or behave unexpectedly.

Example

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

particleSystem.particleRadius = 3.0