B2.World:createParticleSystem: Difference between revisions

From GiderosMobile
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
'''Available since:''' Gideros 2015.06.30<br/>
'''<translate>Available since</translate>:''' Gideros 2015.06.30<br/>
=== Description ===
=== <translate>Description</translate> ===
<translate>Creats new particle system, which will use Liquid fun.
<translate>Creats new particle system, which will use Liquid fun.
Parameters that you can provide in table:
Parameters that you can provide in table:
Line 24: Line 24:
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
</source>
</source>
=== Parameters ===
=== <translate>Parameters</translate> ===
'''particleSysDef''': (table) <translate>parameters that define particle system</translate> <br/>
'''particleSysDef''': (table) <translate>parameters that define particle system</translate> <br/>
=== Return values ===
=== <translate>Return values</translate> ===
'''Returns''' (b2.ParticleSystem) <translate>new particle system</translate><br/>
'''<translate>Returns</translate>''' (b2.ParticleSystem) <translate>new particle system</translate><br/>

Revision as of 06:28, 24 August 2018

Available since: Gideros 2015.06.30

Description

Creats new particle system, which will use Liquid fun. Parameters that you can provide in table: "pressureStrength", "dampingStrength", "elaticStrength", "springStrength", "viscousStrength", "surfaceTensionPressureStrength", "surfaceTensionNormalStrength", "repulsiveStrength", "powderStrength", "ejectionStrength", "staticPressureStrength", "staticPressureRelaxation", "colorMixingStrength", "lifetimeGranularity", "radius", "staticPressureIterations", "destroyByAge"

(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)

Parameters

particleSysDef: (table) parameters that define particle system

Return values

Returns (b2.ParticleSystem) new particle system