Methods
View

lookAtBoundingBox

Moves the Viewpoint to look at the specified bounding box.

The Viewpoint simulates the position of a camera looking at the scene.

Example



Usage

JS


Parameters

boundingBox

Bounding box to look at.

Type

Required

Box3

Yes

direction

Direction of the Viewpoint.

Type

Required

String or Vector3

No

Named Viewpoint

Valid values are:

  • home
  • front
  • back
  • left
  • right
  • top
  • bottom



Updated 13 Sep 2024
Did this page help you?