Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FocusFromAngleDto

Index

Constructors

constructor

  • new FocusFromAngleDto(meshes?: Mesh[], includeChildren?: boolean, orientation?: number[], distance?: number, padding?: number, animationSpeed?: number): FocusFromAngleDto
  • Parameters

    • Optional meshes: Mesh[]
    • Optional includeChildren: boolean
    • Optional orientation: number[]
    • Optional distance: number
    • Optional padding: number
    • Optional animationSpeed: number

    Returns FocusFromAngleDto

Properties

animationSpeed

animationSpeed: number

Speed of camera animation in seconds

default

1.0

minimum

0.01

maximum

Infinity

step

0.01

Optional distance

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

default

undefined

minimum

0.01

maximum

Infinity

step

0.1

optional

true

includeChildren

includeChildren: boolean

Whether to include children when computing bounding boxes

default

true

meshes

meshes: Mesh[]

List of meshes to focus on

default

[]

orientation

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

default

[1, 1, 1]

padding

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

default

1.5

minimum

0.1

maximum

Infinity

step

0.1

Generated using TypeDoc