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))
def _Tick(self, progress, camera): progress = math.pow(progress, 4.0) camera.fov = mathUtil.Lerp(self.fovStart, self.fovEnd, progress)
def _Tick(self, progress, cameraContext): cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp( self.startFov, self.endFov, progress)
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)
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)
def _Tick(self, progress, cameraContext): cameraContext.GetSpaceCamera().translationFromParent = mathUtil.Lerp( self.startTrZ, self.endTrZ, progress)
def _Tick(self, progress, cameraContext): progress = math.pow(progress, 4.0) cameraContext.GetSpaceCamera().fieldOfView = mathUtil.Lerp( self.fovStart, self.fovEnd, progress)
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
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))
def _Tick(self, progress, camera): camera.fieldOfView = mathUtil.Lerp(self.startFov, self.endFov, progress)
def _Tick(self, progress, camera): camera.translationFromParent = mathUtil.Lerp(self.startTrZ, self.endTrZ, progress)
def _Tick(self, progress, camera): progress = pow(progress, self.accelerationPower) translation = mathUtil.Lerp(self.start, self.end, progress) camera._AddToEyeOffset(translation)
def _Tick(self, progress, camera): transl = mathUtil.Lerp(self.cambeg, self.camend, progress) checkedTranslation = camera.CheckTranslationFromParent(transl) camera.translationFromParent = checkedTranslation