|
rigSystems 0.1.1
RigKit pack API - rigSystems
|
One Update of cooked orbit input. More...
#include <rigSystems/src/OrbitNav.h>
Public Attributes | |
| glm::vec3 | pivot {0.f} |
| World point under the cursor (see orbitPickPivot). | |
| float | viewW = 0.f |
| Viewport size in the same units as mouseX / mouseY (GLFW pixels). | |
One Update of cooked orbit input.
Bindings stay in the app.
Read GLFW / ImGui in the app, then fill this. orbit tumbles around COrbitDrive::target. pan is truck + pedestal (slide target on the view plane). With viewH set, pan tracks the screen so DPI and zoom stay natural; otherwise it uses a radius heuristic. dolly / wheel zoom: perspective dollies radius; orthographic scales CCamera::orthoHeight and leaves radius as the clip standoff. wheel applies when blocked. blocked clears an in-progress drag (gizmo, UI, off-bed). With havePivot, orbit tumbles about pivot (captured at press) and wheel zoom anchors on it, so the content under the cursor keeps its screen position.
| float rig::OrbitNavFrame::viewW = 0.f |
Viewport size in the same units as mouseX / mouseY (GLFW pixels).
When viewH > 1, pan matches on-screen motion at the orbit target (FOV / ortho height); otherwise falls back to a radius heuristic.