Methods
View

lookAt

Moves the Viewpoint to look at the specified objects.

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

Example



Usage

JS


Parameters

objectIds

List of object ids to look at.

Type

Required

Array[String]

Yes

direction

Direction of the Viewpoint.

Type

Required

String or Vector3

No

Named Viewpoint

Valid values are:

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