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

Starts a navigation movement.

:::hint{type="info"}
This method initiates a navigation movement. The movement will continue until the `stopNavigation` method is called.
:::

## Example

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

## Usage

```javascript
const navigationMovement = {
  moveForward: 2,
  rotateRight: 0.1,
  moveDown: 5
};

viewer3d.updateNavigation(navigationMovement);
```

## Parameters

### navigationMovement

The navigation movement to start.

| **Type**     | **Required** |
| ------------ | ------------ |
| Map\[Number] | Yes          |

**Properties**

| **Name** | **Type** | **Required** | **Description**                       |
| -------- | -------- | ------------ | ------------------------------------- |
| `key`    | Number   | Yes          | The scale applied to the movement key |

Valid movement keys are:

- `moveForward`
- `moveBackward`
- `moveLeft`
- `moveRight`
- `moveUp`
- `moveDown`
- `rotateUp`
- `rotateDown`
- `rotateLeft`
- `rotateRight`

