Beispiel #1
0
        private void UpdateSimulation(float deltaTime)
        {
            simulationTime += deltaTime;

            UpdatePlugins(deltaTime);
            particles.UpdateSimulation(simulationTime, timePerFrameExp);
        }
Beispiel #2
0
 public void UpdateSimulation(float time)
 {
     if (a != null)
     {
         // update sub-nodes
         a.UpdateSimulation(time);
         b.UpdateSimulation(time);
         c.UpdateSimulation(time);
         d.UpdateSimulation(time);
     }
     else if (numElements != 0)
     {
         // update local particles
         UpdateParticles(time);
     }
 }