InterfacesCameraStrategyOn this pageCameraStrategy <T>Interface that describes a custom camera strategy for tracking targetsImplemented byElasticToActorStrategyLimitCameraBoundsStrategyLockCameraToActorAxisStrategyLockCameraToActorStrategyRadiusAroundActorStrategyIndex PropertiesactiontargetProperties actionaction: (target: T, camera: Camera, engine: Engine<any>, elapsed: number) => VectorCamera strategies perform an action to calculate a new focus returned out of the strategyType declaration(target: T, camera: Camera, engine: Engine<any>, elapsed: number): VectorParameterstarget: TThe target object to apply this camera strategy (if any)camera: CameraThe current camera implementation in excalibur running the gameengine: Engine<any>The current engine running the gameelapsed: numberThe elapsed time in milliseconds since the last frameReturns Vectortargettarget: TTarget of the camera strategy that will be passed to the action
Interface that describes a custom camera strategy for tracking targets