Skip to main content

apply_delta

Function apply_delta 

Source
pub fn apply_delta(
    world: &mut GameWorld,
    delta: GizmoDelta,
    starts: &[(EntityId, GizmoTransform)],
)
Expand description

Writes a drag’s result back onto every entity it started with.

The delta is world-space and Transform is parent-relative, so a child of a moved or rotated parent is manipulated in its parent’s frame rather than the world’s. Correct for the root entities that make up almost every selection; reparenting-aware manipulation is a separate piece of work.