Skip to main content

translate

Function translate 

Source
fn translate(
    doc: &Document,
    shape: Shape,
    delta: (GridVec, Vec2),
    builder: &mut CommitBuilder,
)
Expand description

The per-kind translation every move shares, collision already decided. grid is the snapped cell delta and px its world-space twin, so the block body and the icon riding it cannot disagree.