Camera
12 pages
-
camera_set_viewAims the camera by exactly one of: view (a canonical view, fitting the visible scene unless fit: false), direction (keeping the target and focus distance), or eye with target. -
camera_fitFrames the visible scene, or nodeIds (hidden nodes count, unknown ids are ignored, an empty list is the visible scene, no known id is invalid_params), keeping the view direction. -
camera_fit_selectionFrames the selected nodes, visible or not, keeping the view direction. -
camera_resetDefault view direction, framing the whole scene. -
camera_set_projectionSwitches projection keeping the framing at the focus point. -
camera_orbitTurntable orbit about pivot (default the target): a positive yawDeg turns the eye counter-clockwise seen from above, about +Z; a positive pitchDeg raises the eye. -
camera_panPans by dx, dy visible heights of the slot (x right, y down; dx: 0.1 is a tenth of the view), at the focus depth or at the view depth of at, which then moves by exactly that much on screen. -
camera_zoomZooms by factor (< 1 zooms in) about at (default the target), which stays under the same pixel. -
camera_stopStops camera motion (a transition, inertia, a damping residual) at the live pose, or with to: 'goal' at the running transition's goal; the transition then settles as stopped. -
navigation_setMerges navigation settings: what each drag does, modifiers, wheel, zoom to cursor, the orbit pivot, rates, inversions, damping, inertia, touch, orbit or fly mode, fly speed (0: automatic), limits that narrow the zoom range, reduced motion. -
get_navigationThe navigation settings of the slot. -
get_camera_stateCamera as { eye, target, up, projection } in f64 world space (up is the screen up), with moving, and during a transition its goal.