示例#1
0
        static void Main(string[] args)
        {
            var path            = args[0];
            var particles       = ParticlesFileReader.FromFile(path);
            var collisionSystem = new CollisionSystem(particles);

            for (var millis = 0.0; ; millis += 500)
            {
                collisionSystem.Update(millis);
            }
        }
示例#2
0
 private static IEnumerable <Particle> LoadParticlesFromFile(string path)
 {
     return(ParticlesFileReader.FromFile(path));
 }