Lens Scripting API
    Index

    Properties

    id: number = ...
    nextId: number = 0

    Accessors

    • get canDecay(): boolean

      Returns boolean

      if the delta can be decayed

    • set canDecay(value: boolean): void

      Sets if the delta can be decayed

      Parameters

      • value: boolean

      Returns void

    • get sign(): number

      Returns number

      the direction of the detected handover when the delta is measured 1: from UL to HLMT -1: from HLMT to UL

    Methods

    • Applies the delta on the targeting direction to suppress jumps because of the handover

      Parameters

      • direction: vec3

        targeting direction

      Returns vec3

      targeting direction with the delta applied on it

    • Applies the delta on the targeting locus to suppress jumps because of the handover

      Parameters

      • locus: vec3

        targeting locus

      Returns vec3

      targeting locus with the delta applied on it

    • Helper method to create a new delta object instance

      Parameters

      • detection: HandOverDetection

        handover detection object to get sign (handover direction) metadata from it

      • modifiedValues: ModifiedValues

        targeting directin and locus (origin) on the previous and current frame to measure delta between them

      Returns Delta

      the created delta instance

    • Steps the decay

      Returns void

    • Returns number

      the current duration of the decaying in seconds Returns zero seconds if the decaying hasn't been started. Stops increasing after the delta is completely decayed.

    • Returns boolean

    • Returns number

      the elapsed time in seconds since the delta object was created

    MMNEPVFCICPMFPCPTTAAATR