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<Read<Children>>, Read<ChildOf>))>,
)
Available on crate features std and bevy-support only.
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.