コード例 #1
0
 def _Tick(self, progress, camera):
     progress = max(0, (progress - self.animationStartsAt) / (1 - self.animationStartsAt))
     camera.fov = mathUtil.Lerp(self.fovStart, self.fovEnd, 1.0 - math.pow(1.0 - progress, 2.0))
コード例 #2
0
 def _Tick(self, progress, camera):
     progress = math.pow(progress, 4.0)
     camera.fov = mathUtil.Lerp(self.fovStart, self.fovEnd, progress)
コード例 #3
0
 def _Tick(self, progress, cameraContext):
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.startFov, self.endFov, progress)
コード例 #4
0
 def Tick(self, camera, simTime, clockTime):
     t = blue.os.TimeDiffInMs(self.timeStart, simTime) / 1000.0
     progress = self.progressCurve.GetValueAt(t)
     camera.translationFromParent = mathUtil.Lerp(self.initialTranslation, 0, progress)
コード例 #5
0
 def _Tick(self, progress, cameraContext):
     progress = pow(progress, self.accelerationPower)
     translation = mathUtil.Lerp(self.start, self.end, progress)
     cam = cameraContext.GetSpaceCamera()
     cam.translationFromParent = cameraContext.CheckTranslationFromParent(
         translation)
コード例 #6
0
 def _Tick(self, progress, cameraContext):
     cameraContext.GetSpaceCamera().translationFromParent = mathUtil.Lerp(
         self.startTrZ, self.endTrZ, progress)
コード例 #7
0
 def _Tick(self, progress, cameraContext):
     progress = math.pow(progress, 4.0)
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.fovStart, self.fovEnd, progress)
コード例 #8
0
 def _Tick(self, progress, cameraContext):
     transl = mathUtil.Lerp(self.cambeg, self.camend, progress)
     checkedTranslation = cameraContext.CheckTranslationFromParent(
         transl, source=self.source)
     cameraContext.GetCameraByName(
         self.source).translationFromParent = checkedTranslation
コード例 #9
0
 def _Tick(self, progress, cameraContext):
     progress = max(0, (progress - self.animationStartsAt) /
                    (1 - self.animationStartsAt))
     cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp(
         self.fovStart, self.fovEnd, 1.0 - math.pow(1.0 - progress, 2.0))
コード例 #10
0
 def _Tick(self, progress, camera):
     camera.fieldOfView = mathUtil.Lerp(self.startFov, self.endFov,
                                        progress)
コード例 #11
0
 def _Tick(self, progress, camera):
     camera.translationFromParent = mathUtil.Lerp(self.startTrZ,
                                                  self.endTrZ, progress)
コード例 #12
0
 def _Tick(self, progress, camera):
     progress = pow(progress, self.accelerationPower)
     translation = mathUtil.Lerp(self.start, self.end, progress)
     camera._AddToEyeOffset(translation)
コード例 #13
0
 def _Tick(self, progress, camera):
     transl = mathUtil.Lerp(self.cambeg, self.camend, progress)
     checkedTranslation = camera.CheckTranslationFromParent(transl)
     camera.translationFromParent = checkedTranslation