0 votes

Say I want to emit a particle every 1 second, but I want it to live for 5 seconds. Is that possible?

asked Mar 28, 2018 in Engine by jarlowrey (611 points)

1 Answer

+1 vote

It is possible but you need to adjust explosiveness parameter here more information in documentation

answered Mar 28, 2018 by Bartosz (1,004 points)

So what would the math be?

explosiveness:

0: Emit particles at regular intervals (default value).
1: Emit all particles simultaneously.

0.1 = emit 1/10 of the particles at regular intervals or 90% of the interval?

That I do not know. Official docs have still long way to go. I've look at c++ source but there is no math related to explosiveness and in shaders there is this code restart_phase*= (1.0-explosiveness)
and float restart_phase = float(gl_VertexID)/float(total_particles);

Sorry but I cannot deduce more.

Thanks though!

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.