public static m_Emitter CreateFireEmitter(Texture2D particleTexture, Vector2 pos) { m_Emitter e = new m_Emitter(particleTexture, pos); e.m_gravity = 0.0f; e.m_minLife = 0.25f; e.m_maxLife = 2.0f; e.m_minVelocity = new Vector2(0.0f, 0.0f); e.m_maxVelocity = new Vector2(0.0f, 100.0f); e.m_emissionRate = 1000.0f; e.m_emissionSize = new Vector2(10.0f, 1.0f); e.m_transparency = 0.15f; return(e); }
// STATIC FUNCTIONS TO BUILD EMITTERS WITH SOME PRESET SETTINGS //------------------------------------------------------------- public static m_Emitter CreateBurstEmitter(Texture2D particleTexture, Vector2 pos) { m_Emitter e = new m_Emitter(particleTexture, pos); return(e); }