public Particle (ParticleSystem system)
		{
			this.system = system;
			Location = new PointF ();

			// Make each particle a bit different by randomizing its
			// coefficient of friction
			var random = new Random ();
			var r = ((float)random.NextDouble () - 0.5f) * 0.2f;

			friction = 1.0f - SimulationView.FRICTION + r;
		}
Пример #2
0
		public void Set (PointF point)
		{
			X = point.X;
			Y = point.Y;
		}