Skip to main content

LockCameraToActorStrategy

Lock a camera to the exact x/y position of an actor.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

publictarget

target: Actor

Target of the camera strategy that will be passed to the action

Methods

publicaction

  • Camera strategies perform an action to calculate a new focus returned out of the strategy


    Parameters

    • target: Actor

      The target object to apply this camera strategy (if any)

    • camera: Camera

      The current camera implementation in excalibur running the game

    • engine: Engine<any>

      The current engine running the game

    • elapsedMs: number

      The elapsed time in milliseconds since the last frame

    Returns Vector