Skip to content

output the number of particle when simulating #289

Answered by janbender
BoyuanTang331 asked this question in Q&A
Discussion options

You must be logged in to vote

Use "numActiveParticles()". If there are emitters in the scene, we allocate already the memory of all particles that will be emitted. Then numParticles give you the number of all particles (active + allocated but not yet emitted). numActiveParticles() returns the number of particles which are currently active in the simulation.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BoyuanTang331
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants