Class TargetInfluence

A target influence draws the InfluencedCamera away from its target towards an offset.

Implements

Constructors

Properties

desiredOffset: Vector2 = ...
factor: number

The factor to multiply the influence offset by (before applying maxLength). Defaults to 1.

lerpFactor: number

The percentage amount to move with each update. A value between 0 and 1.

maxLength: number

The maximum length this influence offset can have.

x: number = 0
y: number = 0

Methods

  • Set the new influence offset. Factor and maxLength will be applied.

    Parameters

    • x: number

      The new x offset.

    • y: number

      The new y offset.

    Returns void