Function propagate_parent_transforms

Source
pub fn propagate_parent_transforms(
    queue: Local<'_, WorkQueue>,
    roots: Query<'_, '_, (Entity, Ref<'_, Transform>, &mut GlobalTransform, &Children), (Without<ChildOf>, Changed<TransformTreeChanged>)>,
    nodes: Query<'_, '_, (Entity, (Ref<'static, Transform>, Mut<'static, GlobalTransform>, Ref<'static, TransformTreeChanged>), (Option<&'static Children>, &'static ChildOf))>,
)
Expand description

Update GlobalTransform component of entities based on entity hierarchy and Transform component.

Third party plugins should ensure that this is used in concert with sync_simple_transforms and mark_dirty_trees.