public void Generate(int numParticles, NewBodyDelegate newBodyDel)
        {
            m_bodiesSoFar = new SSSphereBVH();
            m_newBodyDel = newBodyDel;
            m_id = 0;

            m_partFieldGen.Generate(numParticles, onNewParticle);

            // Prepare the garbage
            //m_rand = null;
            m_newBodyDel = null;
            m_bodiesSoFar = null;
        }
Exemple #2
0
        public void Generate(int numParticles, NewBodyDelegate newBodyDel)
        {
            m_bodiesSoFar = new SSSphereBVH();
            m_newBodyDel  = newBodyDel;
            m_id          = 0;

            m_partFieldGen.Generate(numParticles, onNewParticle);

            // Prepare the garbage
            m_rand        = null;
            m_newBodyDel  = null;
            m_bodiesSoFar = null;
        }