Function propagate_parent_transforms

Source
pub fn propagate_parent_transforms(
    root_query: Query<'_, '_, (Entity, &Children, Ref<'_, Transform>, &mut GlobalTransform), Without<ChildOf>>,
    orphaned: RemovedComponents<'_, '_, ChildOf>,
    transform_query: Query<'_, '_, (Ref<'_, Transform>, &mut GlobalTransform, Option<&Children>), With<ChildOf>>,
    child_query: Query<'_, '_, (Entity, Ref<'_, ChildOf>), With<GlobalTransform>>,
    orphaned_entities: Local<'_, Vec<Entity>>,
)
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.