Lock a camera to a specific axis around an actor.

Hierarchy

  • LockCameraToActorAxisStrategy

Implements

Constructors

Properties

Methods

Constructors

Properties

axis: Axis
target: Actor

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

Methods

  • 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)

    • cam: Camera

      The current camera implementation in excalibur running the game

    • _eng: Engine

      The current engine running the game

    • _delta: number

      The elapsed time in milliseconds since the last frame

    Returns Vector