from direct.interval.ParticleInterval import ParticleInterval
Contains the ParticleInterval class
- class ParticleInterval(particleEffect, parent, worldRelative=1, renderParent=None, duration=0.0, softStopT=0.0, cleanup=False, name=None)
Use this interval when you want to have greater control over a ParticleEffect. The interval does not register the effect with the global particle and physics managers, but it does call upon them to perform its stepping. You should NOT call particleEffect.start() with an effect that is being controlled by a ParticleInterval.
- __init__(self, particleEffect, parent, worldRelative=1, renderParent=None, duration=0.0, softStopT=0.0, cleanup=False, name=None)
particleEffect (ParticleEffect) – a particle effect
parent (NodePath) – this is where the effect will be parented in the scene graph
worldRelative (bool) – this will override ‘renderParent’ with render
renderParent (NodePath) – this is where the particles will be rendered in the scenegraph
duration (float) – for the time
softStopT (float) – no effect if 0.0, a positive value will count from the start of the interval, a negative value will count from the end of the interval
cleanup (boolean) – if True the effect will be destroyed and removed from the scenegraph upon interval completion. Set to False if planning on reusing the interval.
name (string) – use this for unique intervals so that they can be easily found in the taskMgr.
- notify = <direct.directnotify.Notifier.Notifier object>
- particleNum = 1
- privInitialize(self, t)
- privStep(self, t)