Skip to main content

LockCameraToActorAxisStrategy

Lock a camera to a specific axis around an actor.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

publicaxis

axis: Axis

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)

    • cam: Camera

      The current camera implementation in excalibur running the game

    • _eng: Engine<any>

      The current engine running the game

    • _delta: number

      The elapsed time in milliseconds since the last frame

    Returns Vector