Interpolates the transition of focus position.

Hierarchy

  • FocusController

Constructors

Properties

Methods

Constructors

Properties

targetX: number = 0

The focus position.

targetY: number = 0

The focus position.

vx: number = 0

Current velocity.

vy: number = 0

Current velocity.

x: number = 0

Current position.

y: number = 0

Current position.

Methods

  • Sets the focus position.

    Parameters

    • x: number

      X position in range [-1, 1].

    • y: number

      Y position in range [-1, 1].

    • instant: boolean = false

      Should the focus position be instantly applied.

    Returns void

Generated using TypeDoc