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§
- Selection
Frame - 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
Nonewhen nothing is selected. - world_
origin 🔒 - World-space origin of
entity, preferring the propagated global transform.