bitbybit.dev v1.0.0-rc.1
    Preparing search index...
    Index

    Constructors

    • Parameters

      • Optionalmeshes: Mesh[]
      • OptionalincludeChildren: boolean
      • Optionalorientation: number[]
      • Optionaldistance: number
      • Optionalpadding: number
      • OptionalanimationSpeed: number

      Returns FocusFromAngleDto

    Properties

    meshes: Mesh[]

    List of meshes to focus on

    []
    
    includeChildren: boolean

    Whether to include children when computing bounding boxes

    true
    
    orientation: number[]

    Orientation vector indicating the direction from which to view the object The camera will be positioned in this direction from the center of the bounding box

    [1, 1, 1]
    
    distance?: number

    Distance from the center of the bounding box to position the camera If not specified, distance will be automatically calculated based on object size

    undefined
    

    0.01

    Infinity

    0.1

    true

    padding: number

    Padding multiplier to control spacing around objects when distance is auto-calculated Higher values = more space around object (camera further away) Lower values = tighter framing (camera closer) Only applies when distance is not manually specified

    1.5
    

    0.1

    Infinity

    0.1

    animationSpeed: number

    Speed of camera animation in seconds

    1.0
    

    0.01

    Infinity

    0.01