Emitters and paused/stopped state
Emitters and paused/stopped state
In sio2_emitter.c / sio2EmitterRender, the code looks like:
Personally, I'd suggest to only have a play and stop state where the first keeps emitting and the latter only updates existing particles, and then change the code to:
Best,
Matt
- Code:
if( _SIO2emitter->state == SIO2_EMITTER_PLAY )
{
// ...
// Spawn new particles if necessary
// ...
}
else
{ return; }
Personally, I'd suggest to only have a play and stop state where the first keeps emitting and the latter only updates existing particles, and then change the code to:
- Code:
// ...
else if (_SIO2emitter->n_particle == 0) // Nothing to update
{ return; }
Best,
Matt
Permissions in this forum:
You cannot reply to topics in this forum