direct.interval.Interval¶
from direct.interval.Interval import Interval
Interval module: contains the Interval class
Inheritance diagram
-
class
Interval
(name, duration, openEnded=1)[source]¶ Bases:
direct.showbase.DirectObject.DirectObject
Interval class: Base class for timeline functionality
-
property
done_event
¶
-
getPlayRate
(self)[source]¶ Returns the play rate as set by the last call to start(), loop(), or setPlayRate().
-
notify
= <direct.directnotify.Notifier.Notifier object>¶
-
property
open_ended
¶
-
property
play_rate
¶ Returns the play rate as set by the last call to start(), loop(), or setPlayRate().
-
playbackCounter
= 0¶
-
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.
-
start
(self, startT=0.0, endT=- 1.0, playRate=1.0)[source]¶ Starts the interval. Returns an awaitable.
-
property
stopped
¶
-
property
t
¶
-
property