Difference between revisions of "B2.World:createParticleSystem"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2015.06.30<br/>
 
'''Available since:''' Gideros 2015.06.30<br/>
 
=== Description ===
 
=== Description ===
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:
 
"pressureStrength",  
 
"pressureStrength",  
Line 20: Line 20:
 
"radius",
 
"radius",
 
"staticPressureIterations",
 
"staticPressureIterations",
"destroyByAge"
+
"destroyByAge"</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
 
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''particleSysDef''': (table) parameters that define particle system <br/>
+
'''particleSysDef''': (table) <translate>parameters that define particle system</translate> <br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (b2.ParticleSystem) new particle system<br/>
+
'''Returns''' (b2.ParticleSystem) <translate>new particle system</translate><br/>

Revision as of 13:34, 23 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