Function convertScreenToWorldSize

  • Beta

    Calculates object's world size based on the focal length and it's camera distance.

    Parameters

    • focalLength: number

      Focal length in pixels (see setVerticalFov)

    • distance: number

      Object distance in world space.

    • screenSize: number

      Object size in screen space.

    Returns number

    object size in world space.

Generated using TypeDoc