для этой страницы,
отображается код на другом
In UnigineEditor, there are controls that are used to move in the scene and control the camera behavior. All the available controls can be found on the Navigation tab of the Controls window.
The camera can be moved freely in the scene or relative to a target. In terms of UnigineEditor, the target is a point relative to which the camera is positioned. You can set the target by focusing the camera on a selected node or a group of nodes.
If the camera is focused on a node (in other words - positioned relative to the target), you can also orbit the camera about the target and zoom it towards or away from the target by using the dolly zoom.
In addition to the commonly used terms (for example, Move left, Move up and so on), the following terms are used in UnigineEditor:
- Change direction means changing the yaw / pitch angle to rotate the camera around its vertical / horizontal axis respectively.
- Track (Crab) means tracking the camera in the plane which is perpendicular to the view direction.
- Orbit means tumbling around the target.
- Zoom (Dolly) means zooming the camera towards or away from the target so that the camera cannot continue to zoom in when it reaches the target.
The following schemes demonstrate the main navigation controls that are used in the UnigineEditor:
Navigation controls used to freely move the camera in the scene
Additional navigation controls used to move the camera relative to the target
Focusing the Camera
To set and reset the camera focus, you can use the following default controls:
|F||Focus the camera on the selected nodes.|
|G||Reset the camera focus.|
When you focus the camera on the group of nodes, you should set the pivot point (see Pivot Point Toggle for details) on the main menu:
- If the pivot point is set to Center (the
button is active), the target will be set to the center of selection.
The Center button is active
- If the pivot point is set to Pivot (the
button is active), the target will be set to the last selected node.
The Pivot button is active; Node 2 is the last selected node
If you focus the camera on the node (or the group of nodes), the target position will coincide with the center of the node (or the group of nodes). Therefore, you will be able to orbit the camera around this target and zoom (dolly) the camera towards or away from this target.
Moving the Camera
To move in the scene, you can use the following default controls:
Also you can change the camera position by setting coordinates on the UnigineEditor navigation panel as follows:
Zooming the Camera
To zoom the camera, you can use the following default controls:
|WHEEL UP||Zoom the camera in.
If the camera reaches the target and continues zooming, the target will be moved with the camera.
|WHEEL DOWN||Zoom the camera out.
When zooming out, the position of the target remains the same.
|Alt + RIGHT CLICK + Drag||Zoom (dolly) the camera toward or away from the target by using the dolly zoom.|
Changing the Camera Speed
There are 3 modes of the camera speed. You can switch between them via the navigation panel. Also you can change the speed value set for one of the speed modes. For example, you can change the value of the 1st speed node as follows:
In addition, the following controls can be used to change the camera speed:
|Shift||Speed up the camera movement. Press and hold this key when moving the camera.|
|1 / 2 / 3||Enable the 1st, the 2nd or the 3rd mode of the camera speed.|
|L||Toggle a flashlight attached to the camera.|
Using Several Cameras
In a large virtual world, you can use cameras as watchpoints for fast navigation: you can add and position any number of the cameras in different points of the world, save their positions and then switch between them via the Camera panel when it is necessary.
To create such watchpoint:
dock camera used as watch-point
dock camera view
dock_bouse camera used as watch-point
dock_house camera view
When you switch to one of the saved cameras, you can freely move it in the world: changes in its position and orientation won't be saved.