Difference between revisions of "B2.World:createParticleSystem"

From GiderosMobile
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
 
<languages />
 
<languages />
'''<translate>Available since</translate>:''' Gideros 2015.06.30<br/>
+
'''Available since:''' Gideros 2015.06.30<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/b2.World|b2.World]]<br/>
+
'''Class:''' [[Special:MyLanguage/b2.World|b2.World]]<br/>
=== <translate>Description</translate> ===
+
 
<translate>Creats new particle system, which will use Liquid fun.
+
=== Description ===
Parameters that you can provide in table:
+
Creates a new particle system, which will use Liquid fun.
"pressureStrength",
+
 
"dampingStrength",
+
Parameters you can provide in table are:
"elaticStrength",
+
*"pressureStrength"
"springStrength",
+
*"dampingStrength"
"viscousStrength",
+
*"elasticStrength"
"surfaceTensionPressureStrength",
+
*"springStrength"
"surfaceTensionNormalStrength",
+
*"viscousStrength"
"repulsiveStrength",
+
*"surfaceTensionPressureStrength"
"powderStrength",
+
*"surfaceTensionNormalStrength"
"ejectionStrength",
+
*"repulsiveStrength"
"staticPressureStrength",
+
*"powderStrength"
"staticPressureRelaxation",
+
*"ejectionStrength"
"colorMixingStrength",
+
*"staticPressureStrength"
"lifetimeGranularity",
+
*"staticPressureRelaxation"
"radius",
+
*"colorMixingStrength"
"staticPressureIterations",
+
*"lifetimeGranularity"
"destroyByAge"</translate>
+
*"radius"
 +
*"staticPressureIterations"
 +
*"destroyByAge"
 
<source lang="lua">
 
<source lang="lua">
 
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
 
(b2.ParticleSystem) = b2.World:createParticleSystem(particleSysDef)
 
</source>
 
</source>
=== <translate>Parameters</translate> ===
+
 
'''particleSysDef''': (table) <translate>parameters that define particle system</translate> <br/>
+
=== Parameters ===
=== <translate>Return values</translate> ===
+
'''particleSysDef''': (table) parameters that define particle system <br/>
'''<translate>Returns</translate>''' (b2.ParticleSystem) <translate>new particle system</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (b2.ParticleSystem) new particle system<br/>
 +
 
 +
{{B2.World}}

Revision as of 17:14, 18 February 2020


Available since: Gideros 2015.06.30
Class: b2.World

Description

Creates a new particle system, which will use Liquid fun.

Parameters you can provide in table are:

  • "pressureStrength"
  • "dampingStrength"
  • "elasticStrength"
  • "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





LiquidFun