Panda3D
|
Public Member Functions | |
def | __init__ (self, particleEffect, parent, worldRelative=1, renderParent=None, duration=0.0, softStopT=0.0, cleanup=False, name=None) |
def | privFinalize (self) |
def | privInitialize (self, t) |
def | privInstant (self) |
def | privStep (self, t) |
![]() | |
def | __repr__ (self, indent=0) |
def | clearToInitial (self) |
def | finish (self) |
def | getDoneEvent (self) |
def | getDuration (self) |
def | getLoop (self) |
def | getName (self) |
def | getOpenEnded (self) |
def | getPlayRate (self) |
def | getState (self) |
def | getT (self) |
def | intervalDone (self) |
def | isPaused (self) |
def | isPlaying (self) |
def | isStopped (self) |
def | loop (self, startT=0.0, endT=-1.0, playRate=1.0) |
def | pause (self) |
def | popupControls (self, tl=None) |
def | privDoEvent (self, t, event) |
def | privInterrupt (self) |
def | privPostEvent (self) |
def | privReverseFinalize (self) |
def | privReverseInitialize (self, t) |
def | privReverseInstant (self) |
def | resume (self, startT=None) |
def | resumeUntil (self, endT) |
def | setDoneEvent (self, event) |
def | setLoop (self, loop=1) |
def | setPlayRate (self, playRate) |
def | setT (self, t) |
def | setupPlay (self, startT, endT, playRate, doLoop) |
def | setupResume (self) |
def | start (self, startT=0.0, endT=-1.0, playRate=1.0) |
def | stepPlay (self) |
![]() | |
def | accept (self, event, method, extraArgs=[]) |
def | acceptOnce (self, event, method, extraArgs=[]) |
def | addTask (self, *args, **kwargs) |
def | detectLeaks (self) |
def | doMethodLater (self, *args, **kwargs) |
def | getAllAccepting (self) |
def | ignore (self, event) |
def | ignoreAll (self) |
def | isAccepting (self, event) |
def | isIgnoring (self, event) |
def | removeAllTasks (self) |
def | removeTask (self, taskOrName) |
Public Attributes | |
cleanup | |
currT | |
particleEffect | |
softStopT | |
state | |
![]() | |
currT | |
doneEvent | |
duration | |
es | |
name | |
openEnded | |
pname | |
pstats | |
setTHooks | |
state | |
Static Public Attributes | |
notify = directNotify.newCategory('ParticleInterval') | |
int | particleNum = 1 |
![]() | |
notify = directNotify.newCategory("Interval") | |
int | playbackCounter = 0 |
![]() | |
def | accept_once = acceptOnce |
def | add_task = addTask |
def | detect_leaks = detectLeaks |
def | do_method_later = doMethodLater |
def | get_all_accepting = getAllAccepting |
def | ignore_all = ignoreAll |
def | is_accepting = isAccepting |
def | is_ignoring = isIgnoring |
def | remove_all_tasks = removeAllTasks |
def | remove_task = removeTask |
Additional Inherited Members | |
![]() | |
done_event = property(getDoneEvent, setDoneEvent) | |
open_ended = property(getOpenEnded) | |
play_rate = property(getPlayRate, setPlayRate) | |
stopped = property(isStopped) | |
t = property(getT, setT) | |
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.
def __init__ | ( | self, | |
particleEffect, | |||
parent, | |||
worldRelative = 1 , |
|||
renderParent = None , |
|||
duration = 0.0 , |
|||
softStopT = 0.0 , |
|||
cleanup = False , |
|||
name = None |
|||
) |
Args: 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.
Reimplemented from Interval.
def privFinalize | ( | self | ) |
Reimplemented from Interval.
def privInitialize | ( | self, | |
t | |||
) |
Reimplemented from Interval.
def privInstant | ( | self | ) |
Reimplemented from Interval.
def privStep | ( | self, | |
t | |||
) |
Reimplemented from Interval.
cleanup |
currT |
|
static |
particleEffect |
|
static |
softStopT |
state |