HeadlockTranslationCalculator is used to calculate the center of the sphere used when calculating the target's position relative to the pitch/yaw orientation of the camera.

Constructors

Accessors

  • get translationBuffer(): number
  • Returns number

  • set translationBuffer(bufferDistance): void
  • Parameters

    • bufferDistance: number

    Returns void

  • get xzEasing(): number
  • Returns number

  • set xzEasing(easing): void
  • Parameters

    • easing: number

    Returns void

  • get xzEnable(): boolean
  • Returns boolean

  • set xzEnable(enabled): void
  • Parameters

    • enabled: boolean

    Returns void

  • get yEasing(): number
  • Returns number

  • set yEasing(easing): void
  • Parameters

    • easing: number

    Returns void

  • get yEnable(): boolean
  • Returns boolean

  • set yEnable(enabled): void
  • Parameters

    • enabled: boolean

    Returns void

Methods

  • Returns the current center of the sphere.

    Returns vec3

  • Updates the center of the sphere and returns the offset vector to move the target by.

    Parameters

    • cameraPosition: vec3

      the current world position of the camera

    Returns vec3