Lens Scripting API

    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.

    Index

    Constructors

    Accessors

    • get translationBuffer(): number

      Returns number

    • set translationBuffer(bufferDistance: number): void

      Parameters

      • bufferDistance: number

      Returns void

    • get xzEasing(): number

      Returns number

    • set xzEasing(easing: number): void

      Parameters

      • easing: number

      Returns void

    • get xzEnable(): boolean

      Returns boolean

    • set xzEnable(enabled: boolean): void

      Parameters

      • enabled: boolean

      Returns void

    • get yEasing(): number

      Returns number

    • set yEasing(easing: number): void

      Parameters

      • easing: number

      Returns void

    • get yEnable(): boolean

      Returns boolean

    • set yEnable(enabled: boolean): 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

    MMNEPVFCICPMFPCPTTAAATR