Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Generate burst by script? Is this the normal behaviour in Burst mode?
#2
Hi there,

The emitter speed is used in both modes, as it defines the speed of the particles being emitted.

To emit a single burst by code, you can call EmitParticle() as many times as distribution points there are in your shape:

Quote:int emissionPoints = GetDistributionPointsCount();
for (int i = 0; i < emissionPoints; ++i)
{
    EmitParticle(0,stepTime);
}

unsurprisingly, this is exactly the same that Burst emission does internally Guiño (BeginStep() method of ObiEmitter.cs). The only difference is that Burst mode waits until the amount of active particles is 0 (all particles are dead) before emitting again. So, the behavior you describe is the intended one: burst, wait for all particles to die, then burst again.
Reply


Messages In This Thread
RE: Generate burst by script? Is this the normal behaviour in Burst mode? - by josemendez - 27-05-2020, 03:59 PM