Browse Source

added accelerate and clearToInitial

Josh Wilson 19 years ago
parent
commit
88e3d2c21d
1 changed files with 6 additions and 7 deletions
  1. 6 7
      direct/src/particles/ParticleEffect.py

+ 6 - 7
direct/src/particles/ParticleEffect.py

@@ -200,11 +200,10 @@ class ParticleEffect(NodePath):
         except:
             self.notify.error('loadConfig: failed to load particle file: '+ repr(filename))
 
+    def accelerate(self,time,stepCount = 1,stepTime=0.0):
+        for particles in self.getParticlesList():
+            particles.accelerate(time,stepCount,stepTime)
 
-
-
-
-
-
-
-
+    def clearToInitial(self):
+        for particles in self.getParticlesList():
+            particles.clearToInitial()