*** empty log message ***

This commit is contained in:
Mike Goslin 2001-02-28 01:37:45 +00:00
parent b2b299259b
commit aa394a2e95
2 changed files with 5 additions and 3 deletions

View File

@ -27,9 +27,11 @@ boatTrack = Track.Track([boatMopath], 'boattrack')
pos = Point3(0, 0, -5) pos = Point3(0, 0, -5)
hpr = Vec3(0, 0, 0) hpr = Vec3(0, 0, 0)
dockLerp = LerpPosHprInterval('lerp', dock, pos, hpr, 5.0) dockLerp = LerpPosHprInterval('lerp', dock, pos, hpr, 5.0)
# We need the dock's state to be defined before the lerp
dockPos = PosHprInterval('dockpos', dock, dock.getPos(), dock.getHpr(), 1.0)
dockUpTime = boatTrack.getTrackRelativeEndTime('boatpath') - dockLerp.getDuration() dockUpTime = boatTrack.getTrackRelativeEndTime('boatpath') - dockLerp.getDuration()
dockLerp.setStartTime(dockUpTime, Interval.Interval.TrackStartRelative) dockLerp.setStartTime(dockUpTime, Interval.Interval.TrackStartRelative)
dockTrack = Track.Track([dockLerp], 'docktrack') dockTrack = Track.Track([dockPos, dockLerp], 'docktrack')
# Start the water sound 5 seconds after the boat starts moving # Start the water sound 5 seconds after the boat starts moving
waterStartTime = boatTrack.getTrackRelativeStartTime('boatpath') + 5.0 waterStartTime = boatTrack.getTrackRelativeStartTime('boatpath') + 5.0

View File

@ -103,8 +103,8 @@ class Track(Interval.Interval):
prev.setT(t) prev.setT(t)
return return
else: else:
Interval.Interval.notify.warning( #Interval.Interval.notify.warning(
'Track.setT(): state undefined at t: %f' % t) # 'Track.setT(): state undefined at t: %f' % t)
return return
elif (t0 <= t) and (t <= t0 + i.getDuration()): elif (t0 <= t) and (t <= t0 + i.getDuration()):
i.setT(t - t0) i.setT(t - t0)