|
Panda3D
|
Classes | |
| class | DummyAcceptor |
Functions | |
| caughtIt () | |
| handleWaterDone () | |
| printArguments (a, b, c) | |
| printDone () | |
| printPreviousEnd () | |
| printPreviousStart () | |
| printStart () | |
| printTrackStart () | |
| test (n) | |
Variables | |
| base = ShowBase() | |
| boat = loader.loadModel('models/misc/smiley') | |
| BOAT_END = boatTrack.getIntervalEndTime('boatpath') | |
| BOAT_START = boatTrack.getIntervalStartTime('boatpath') | |
| boatMopath = MopathInterval(mp, boat, 'boatpath') | |
| boatTrack = Track([boatMopath], 'boattrack') | |
| da | |
| dock = loader.loadModel('models/misc/smiley') | |
| dockLerp | |
| dockLerp2 = LerpHprInterval(dock, 3.0, hpr2, name='hpr-lerp') | |
| dockPos = PosHprInterval(dock, dock.getPos(), dock.getHpr(), 1.0, 'dockpos') | |
| dockTrack = Track([dockLerp2, dockPos, dockLerp], 'docktrack') | |
| dockUpTime = BOAT_END - dockLerp.getDuration() | |
| donald = Actor() | |
| donaldLoopInterval = ActorInterval(donald, 'steer', loop=1, duration = 10.0) | |
| donaldSteerInterval = ActorInterval(donald, 'steer') | |
| donaldSteerTrack | |
| eventTime = soundTrack.getIntervalEndTime('watersound') | |
| foghorn = loader.loadSfx('phase_6/audio/sfx/SZ_DD_foghorn.mp3') | |
| foghornSound = SoundInterval(foghorn, name='foghorn') | |
| float | foghornStartTime = BOAT_START + 4.0 |
| hpr2 = Vec3(90.0, 90.0, 90.0) | |
| i1 = FunctionInterval(lambda: base.transitions.fadeOut()) | |
| Using lambdas and functions ### Using a lambda. | |
| i2 = FunctionInterval(lambda: base.transitions.fadeIn()) | |
| i3 = AcceptInterval(da, 'here-is-an-event', caughtIt) | |
| i4 = EventInterval('here-is-an-event') | |
| i5 = IgnoreInterval(da, 'here-is-an-event') | |
| i6 = FunctionInterval(printDone) | |
| i7 = FunctionInterval(printArguments, extraArgs = [1, 10, 100]) | |
| mp = Mopath.Mopath() | |
| mtrack | |
| sound = loader.loadSfx('phase_6/audio/sfx/SZ_DD_waterlap.mp3') | |
| soundTrack = Track([waterSound], 'soundtrack') | |
| soundTrack2 = Track([(foghornStartTime, foghornSound)], 'soundtrack2') | |
| float | startTime = 0.0 |
| Specifying interval start times during track construction ### Interval start time can be specified relative to three different points: PREVIOUS_END PREVIOUS_START TRACK_START. | |
| t1 | |
| t2 | |
| waterDone = EventInterval('water-is-done') | |
| waterEventTrack = Track([waterDone]) | |
| waterSound = SoundInterval(sound, name='watersound') | |
| float | waterStartTime = BOAT_START + 5.0 |
Undocumented Module
| caughtIt | ( | ) |
| handleWaterDone | ( | ) |
| printArguments | ( | a, | |
| b, | |||
| c ) |
| printDone | ( | ) |
| printPreviousEnd | ( | ) |
| printPreviousStart | ( | ) |
| printStart | ( | ) |
| printTrackStart | ( | ) |
| test | ( | n | ) |
| base = ShowBase() |
| boat = loader.loadModel('models/misc/smiley') |
| BOAT_END = boatTrack.getIntervalEndTime('boatpath') |
| BOAT_START = boatTrack.getIntervalStartTime('boatpath') |
| boatMopath = MopathInterval(mp, boat, 'boatpath') |
| boatTrack = Track([boatMopath], 'boattrack') |
| da |
| dock = loader.loadModel('models/misc/smiley') |
| dockLerp |
| dockLerp2 = LerpHprInterval(dock, 3.0, hpr2, name='hpr-lerp') |
| dockPos = PosHprInterval(dock, dock.getPos(), dock.getHpr(), 1.0, 'dockpos') |
| dockUpTime = BOAT_END - dockLerp.getDuration() |
| donald = Actor() |
| donaldLoopInterval = ActorInterval(donald, 'steer', loop=1, duration = 10.0) |
| donaldSteerInterval = ActorInterval(donald, 'steer') |
| donaldSteerTrack |
| eventTime = soundTrack.getIntervalEndTime('watersound') |
| foghorn = loader.loadSfx('phase_6/audio/sfx/SZ_DD_foghorn.mp3') |
| foghornSound = SoundInterval(foghorn, name='foghorn') |
| float foghornStartTime = BOAT_START + 4.0 |
| hpr2 = Vec3(90.0, 90.0, 90.0) |
| i1 = FunctionInterval(lambda: base.transitions.fadeOut()) |
Using lambdas and functions ### Using a lambda.
| i2 = FunctionInterval(lambda: base.transitions.fadeIn()) |
| i3 = AcceptInterval(da, 'here-is-an-event', caughtIt) |
| i4 = EventInterval('here-is-an-event') |
| i5 = IgnoreInterval(da, 'here-is-an-event') |
| i6 = FunctionInterval(printDone) |
| i7 = FunctionInterval(printArguments, extraArgs = [1, 10, 100]) |
| mp = Mopath.Mopath() |
| mtrack |
| sound = loader.loadSfx('phase_6/audio/sfx/SZ_DD_waterlap.mp3') |
| soundTrack = Track([waterSound], 'soundtrack') |
| soundTrack2 = Track([(foghornStartTime, foghornSound)], 'soundtrack2') |
| float startTime = 0.0 |
Specifying interval start times during track construction ### Interval start time can be specified relative to three different points: PREVIOUS_END PREVIOUS_START TRACK_START.
| t1 |
| t2 |
| waterDone = EventInterval('water-is-done') |
| waterSound = SoundInterval(sound, name='watersound') |
| float waterStartTime = BOAT_START + 5.0 |