def Update(self): Camera.Update(self) if self.IsNoiseEnabled(): self._UpdateCameraNoiseOffset() if self.isBobbingCamera: self._UpdateBobbingOffset() self.UpdateAnchorOffset()
def __init__(self): Camera.__init__(self) self.noiseCurve = None self.noiseScaleCurve = None self.noiseScale = 0.0 self.noiseDampCurve = None self.noiseDamp = 1.1 self._noiseX = 0.0 self._noiseY = 0.0 self._noiseOffset = None self._bobbingOffset = None self._bobbingAngle = 0.0 self._anchorBall = None self._anchorOffset = None self.trackTarget = None self.cachedCameraTranslation = None self.shakeController = ShakeController(self) self.animationController = AnimationController(self) self.isManualControlEnabled = True self.audioListener = None
def __init__(self): Camera.__init__(self) self._aspectRatio = 1.0
def OnDeactivated(self): Camera.OnActivated(self) sm.GetService('sceneManager').UnregisterForCameraUpdate(self)
def OnActivated(self, **kwargs): Camera.OnActivated(self, **kwargs) sm.GetService('sceneManager').RegisterForCameraUpdate(self)
def OnActivated(self, **kwargs): Camera.OnActivated(self, **kwargs) uthread.new(self.AudioUpdateThread)
def Orbit(self, *args): if self.IsManualControlEnabled(): Camera.Orbit(self, *args)
def Zoom(self, dz): if self.IsManualControlEnabled(): Camera.Zoom(self, dz)
def Pan(self, *args): if self.IsManualControlEnabled(): Camera.Pan(self, *args)