Expand description
Camera Controller — orbit, pan, zoom, free-fly, and snap views for the editor viewport.
§Modes
- Orbit: rotate around a focal point. Middle-mouse drag or Alt+LMB.
- Pan: translate camera and focal point together. Shift+Middle-mouse.
- Zoom: move camera along view axis. Scroll wheel or Ctrl+Middle-mouse.
- FreeFly: WASD/QE + mouse look. Activated by pressing F.
- Snap: jump to canonical views (Front, Back, Left, Right, Top, Bottom, Iso). Numpad shortcuts.
§Spring physics
The camera has a target_* / current * dual: actual values are
spring-damped toward targets each frame. The spring constants and damping
are tuned by the kit panel’s Camera group. This also handles trauma-based
screen shake: adding to trauma displaces and rolls the camera according to
a Perlin-like hash.
Structs§
- Editor
Camera - The main editor camera.
- Free
FlyInput - Input state for free-fly mode.