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
1b261fc21f
commit
79e66527ed
@ -48,7 +48,6 @@ class LerpPosHprInterval(LerpInterval):
|
|||||||
|
|
||||||
self.blendType = self.__getBlend(blendType)
|
self.blendType = self.__getBlend(blendType)
|
||||||
self.lerp = Lerp.Lerp(functor, self.duration, self.blendType)
|
self.lerp = Lerp.Lerp(functor, self.duration, self.blendType)
|
||||||
self.lastT = 0.0
|
|
||||||
|
|
||||||
def setT(self, t):
|
def setT(self, t):
|
||||||
""" setT(t)
|
""" setT(t)
|
||||||
@ -56,10 +55,7 @@ class LerpPosHprInterval(LerpInterval):
|
|||||||
if (t > self.duration):
|
if (t > self.duration):
|
||||||
return
|
return
|
||||||
assert(t >= 0)
|
assert(t >= 0)
|
||||||
tt = t - self.lastT
|
self.lerp.setT(t)
|
||||||
self.lastT = t
|
|
||||||
self.lerp.setStepSize(tt)
|
|
||||||
self.lerp.step()
|
|
||||||
|
|
||||||
def __getBlend(self, blendType):
|
def __getBlend(self, blendType):
|
||||||
"""__getBlend(self, string)
|
"""__getBlend(self, string)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user