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); } }
private static IEnumerable <Particle> LoadParticlesFromFile(string path) { return(ParticlesFileReader.FromFile(path)); }