MCPcopy Create free account
hub / github.com/defold/defold / StartEmitter

Function StartEmitter

engine/particle/src/particle.cpp:319–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 static void UpdateEmitter(Prototype* prototype, Instance* instance, EmitterPrototype* emitter_prototype, Emitter* emitter, dmParticleDDF::Emitter* emitter_ddf, float dt);
318
319 static void StartEmitter(Instance* instance, Emitter* emitter)
320 {
321 // TODO: Fix auto-start
322 SetEmitterState(instance, emitter, EMITTER_STATE_PRESPAWN);
323 emitter->m_Retiring = 0;
324 }
325
326 static void StopEmitter(Instance* instance, Emitter* emitter)
327 {

Callers 2

FastForwardEmitterFunction · 0.85
StartInstanceFunction · 0.85

Calls 1

SetEmitterStateFunction · 0.85

Tested by

no test coverage detected