Zoom {
SFFloat maxFieldOfView 1.5 # [minFieldOfView, 2*pi]
SFFloat minFieldOfView 0.5 # [0, maxFieldOfView]
}
The Zoom node allows the user to define a controllable zoom for a Camera device.
The Zoom node should be set in the zoom field of a Camera node.
The zoom level can be adjusted from the controller program using the wb_camera_set_fov function.
- The
maxFieldOfViewand theminFieldOfViewfields define respectively the maximum and minimum values for the field of view of the camera zoom (i.e., respectively the maximum and minimum zoom levels). Hence, they represent the minimum and maximum values that can be passed to thewb_camera_set_fovfunction and they can be retrieved using thewb_camera_get_min_fovandwb_camera_get_max_fovfunctions.