direct.interval.MetaInterval
from direct.interval.MetaInterval import MetaInterval, Parallel, ParallelEndTogether, Sequence, Track
This module defines the various “meta intervals”, which execute other intervals either in parallel or in a specified sequential order.
Inheritance diagram
- class MetaInterval(*ivals, **kw)[source]
Bases:
CMetaInterval
- SequenceNum = 1
- property duration
- property manager
- notify = <direct.directnotify.Notifier.Notifier object>
- property play_rate
C++ Interface: get_play_rate(CInterval self)
- /**
Returns the play rate as set by the last call to start(), loop(), or
set_play_rate().
*/
- setPlayRate(self, playRate)[source]
Changes the play rate of the interval. If the interval is already started, this changes its speed on-the-fly. Note that since playRate is a parameter to start() and loop(), the next call to start() or loop() will reset this parameter.
- class Parallel(*ivals, **kw)[source]
Bases:
MetaInterval
- class ParallelEndTogether(*ivals, **kw)[source]
Bases:
MetaInterval
- class Sequence(*ivals, **kw)[source]
Bases:
MetaInterval