Skip to main content

TFollowComponentCameraController

Hierarchy

  • default
    • TFollowComponentCameraController

Implements

  • default

Index

Constructors

constructor

  • new TFollowComponentCameraController(): default
  • Returns default

Properties

publiclerpFactor

lerpFactor: number = 1

Lerp factor controlling the speed of interpolation.

  • If set to 1, movement and rotation are applied immediately.
  • Values closer to 1 result in faster transitions.
  • Values closer to 0 result in slower transitions.

Methods

attachTo

  • Parameters

    Returns void

publiclookAt

  • lookAt(target: vec3, instant?: boolean): void
  • Adjust the camera to look at the specified target position using linear interpolation.


    Parameters

    • target: vec3

      The target position to look at.

    • instant: boolean = false

      If true, rotate the camera instantly without interpolation.

    Returns void

publicmoveTo

  • moveTo(position: vec3, instant?: boolean): void
  • Move the camera to the specified position using linear interpolation.


    Parameters

    • position: vec3

      The target position to move the camera to.

    • instant: boolean = false

      If true, move the camera instantly without interpolation.

    Returns void

onUpdate

  • onUpdate(camera: default, engine: default, delta: number): Promise<void>
  • Parameters

    Returns Promise<void>