Skip to main content

Module mod_gizmo

Module mod_gizmo 

Source
Expand description

Gizmo rendering and manipulation for the editor viewport.

The geometry and the drag math live in khora-core (ui::editor::{gizmo, gizmo_interact}); this module is the ECS side of it — it reads the selection out of the world, hands the pure code what it needs, and writes the resulting transforms back.

Structs§

SelectionFrame
Everything a manipulator needs to know about the current selection.

Functions§

apply_delta
Writes a drag’s result back onto every entity it started with.
capture_starts
The transforms the selected entities have right now, to be held for the duration of a drag.
collect_gizmo_lines
Collects gizmo line instances for all selected entities.
selection_frame
The frame the manipulator occupies for the current selection, or None when nothing is selected.
world_origin 🔒
World-space origin of entity, preferring the propagated global transform.