예제 #1
0
 def rotateCam(self, arc):
     """Setup a lerp interval to rotate the camera about the target."""
     newP = clampScalar(self.target.getP() - arc.getY(),
                        *self.clampP)  #Clamped.
     newH = self.target.getH() + arc.getX()  #Not clamped, just added.
     LERP.LerpHprInterval(
         self.target,
         self.speed,  #Setup the interval\
         P.Vec3(
             newH,
             newP,
             self.target.getR(),
         ),
     ).start()  #and start it.
def colorScaleInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpColorScaleInterval(self, *args, **kw)
def posQuatScaleShearInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpPosQuatScaleShearInterval(self, *args, **kw)
def posHprScaleInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpPosHprScaleInterval(self, *args, **kw)
def quatScaleInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpQuatScaleInterval(self, *args, **kw)
def shearInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpShearInterval(self, *args, **kw)
def hprInterval(self, *args, **kw):
    from direct.interval import LerpInterval
    return LerpInterval.LerpHprInterval(self, *args, **kw)