---
title: lookAt
slug: viewer-3d/methods/lookAt
docTags: 
createdAt: 2024-03-01T14:17:48.684Z
---

Moves the **Viewpoint** to look at the specified objects.

:::hint{type="info"}
The **Viewpoint** simulates the position of a camera looking at the scene.
:::

## Example

::codepen{url="https://codepen.io/Catenda/embed/MWMvmZm"}

## Usage

```javascript
const objectIds = ["object-1", "object-2"];

viewer3d.lookAt(objectIds);
```

## Parameters

### objectIds

List of object ids to look at.

| **Type**       | **Required** |
| -------------- | ------------ |
| Array\[String] | Yes          |

### direction

Direction of the **Viewpoint**.

| **Type**                                          | **Required** |
| ------------------------------------------------- | ------------ |
| String or [Vector3](docId\:kEwRHKTC8Iq2HlT48sRFQ) | No           |

**Named Viewpoint**

Valid values are:

- `home`
- `front`
- `back`
- `left`
- `right`
- `top`
- `bottom`

