Bitbybit Docs
    Preparing search index...

    Class FocusFromAngleDto (Advanced.Navigation)

    Meshes, viewing direction and motion for advanced.navigation.focusFromAngle, which targets the center of the meshes' combined bounding box and orbits the camera to the angle orientation sets.

    Index

    Constructors

    • Parameters

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

      Returns FocusFromAngleDto

    Properties

    meshes: Mesh[]

    Meshes to focus on; an empty list logs a warning and leaves the camera where it is.

    []
    
    includeChildren: boolean

    Counts each mesh's child meshes in the bounding box too.

    true
    
    orientation: number[]

    Direction to view from as [x, y, z], scaled to any length: y sets how high the camera sits over the center, and x and z its heading around the vertical axis.

    [1, 1, 1]
    
    distance?: number

    Distance from the bounding box center to the camera, in model units. Leave it out, or set 0 or less, to work it out from the box diagonal, the field of view and padding.

    undefined
    

    0.01

    Infinity

    0.1

    true

    padding: number

    Multiplies the worked-out distance when distance is left out, so larger values leave more room around the meshes. It is ignored when distance is given.

    1.5
    

    0.1

    Infinity

    0.1

    animationSpeed: number

    Length of the camera move in seconds.

    1.0
    

    0.01

    Infinity

    0.01

    ease: easeEnum

    Easing curve of the camera move: easeIn curves start gently, easeOut curves end gently and easeInOut curves do both; elastic, back and bounce curves overshoot or rebound.

    easeInOutCubic