Beispiel #1
0
	def __init__(self):
		self.particles = []
		firstparticle = particle(0,0,0)
		self.particles.append(firstparticle)
Beispiel #2
0
	def step(self):
		#self.gravity(self.particles)
		if random.randint(0,1000) > 900:
			self.particles.append(particle(random.randint(-1000,1000), random.randint(-1000,1000), random.randint(-1000,1000)))
			print "new particle added!"