mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
*** empty log message ***
This commit is contained in:
parent
b2b299259b
commit
aa394a2e95
@ -27,9 +27,11 @@ boatTrack = Track.Track([boatMopath], 'boattrack')
|
||||
pos = Point3(0, 0, -5)
|
||||
hpr = Vec3(0, 0, 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()
|
||||
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
|
||||
waterStartTime = boatTrack.getTrackRelativeStartTime('boatpath') + 5.0
|
||||
|
@ -103,8 +103,8 @@ class Track(Interval.Interval):
|
||||
prev.setT(t)
|
||||
return
|
||||
else:
|
||||
Interval.Interval.notify.warning(
|
||||
'Track.setT(): state undefined at t: %f' % t)
|
||||
#Interval.Interval.notify.warning(
|
||||
# 'Track.setT(): state undefined at t: %f' % t)
|
||||
return
|
||||
elif (t0 <= t) and (t <= t0 + i.getDuration()):
|
||||
i.setT(t - t0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user