Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ZoomOnDto

Index

Constructors

constructor

  • new ZoomOnDto(meshes?: Mesh[], includeChildren?: boolean, animationSpeed?: number, offset?: number, doNotUpdateMaxZ?: boolean): ZoomOnDto
  • Parameters

    • Optional meshes: Mesh[]
    • Optional includeChildren: boolean
    • Optional animationSpeed: number
    • Optional offset: number
    • Optional doNotUpdateMaxZ: boolean

    Returns ZoomOnDto

Properties

animationSpeed

animationSpeed: number

Speed of camera animation in seconds

default

0.8

minimum

0.01

maximum

Infinity

step

0.01

doNotUpdateMaxZ

doNotUpdateMaxZ: boolean

Whether to prevent updating camera's maxZ (far clipping plane) during zoom

default

true

includeChildren

includeChildren: boolean

Whether to include children when analyzing bounding boxes

default

true

meshes

meshes: Mesh[]

List of meshes to zoom on

default

[]

offset

offset: number

Offset multiplier to control spacing around objects Negative values = tighter framing (closer to object) 0 = default BabylonJS framing (has built-in padding) Positive values = more space around object

default

0

minimum

-0.9

maximum

Infinity

step

0.1

Generated using TypeDoc