Difference between revisions of "B2.ParticleSystem:getWeightBuffer"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2024.11<br/> '''Class:''' b2.ParticleSystem<br/> === Description === TO DO! <syntaxhighlight lang="lua"> (number) = b2.ParticleSy...")
 
 
Line 4: Line 4:
  
 
=== Description ===
 
=== Description ===
TO DO!
+
Gets the weight of each particle. The array is length GetParticleCount().
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
(number) = b2.ParticleSystem:getWeightBuffer()
+
(table) = b2.ParticleSystem:getWeightBuffer()
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) TO DO!<br/>
+
'''Returns''' (table) the pointer to the head of the particle weight array<br/>
  
 
{{B2.ParticleSystem}}
 
{{B2.ParticleSystem}}

Latest revision as of 06:49, 8 November 2024