updateNavigation
Starts a navigation movement.
This method initiates a navigation movement. The movement will continue until the stopNavigation method is called.
Example
Usage
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