Function world_from_parent

Source
pub fn world_from_parent(
    parent_world: &Transform,
    local: Option<&Transform>,
) -> Transform
Expand description

World transform of a node from its parent’s world transform and its own local transform, if it has one. A node without a local transform inherits its parent’s world transform unchanged. Use Transform::IDENTITY as the parent of a root.