Function avian3d::sync::propagate_transforms_physics
source · pub fn propagate_transforms_physics(
root_query: Query<'_, '_, (Entity, &Children, Ref<'_, Transform>, &mut GlobalTransform, Has<RigidBody>, Has<ColliderMarker>), (Without<Parent>, Or<(With<AncestorMarker<RigidBody>>, With<AncestorMarker<ColliderMarker>>)>)>,
orphaned: RemovedComponents<'_, '_, Parent>,
transform_query: Query<'_, '_, (Ref<'static, Transform>, &'static mut GlobalTransform, Option<&'static Children>, Has<RigidBody>, Has<ColliderMarker>), With<Parent>>,
parent_query_1: Query<'_, '_, (Entity, Ref<'static, Parent>, Has<RigidBody>, Has<ColliderMarker>)>,
parent_query_2: Query<'_, '_, (Entity, Ref<'static, Parent>, Has<RigidBody>, Has<ColliderMarker>), Or<(Or<(With<RigidBody>, With<AncestorMarker<RigidBody>>)>, Or<(With<ColliderMarker>, With<AncestorMarker<ColliderMarker>>)>)>>,
orphaned_entities: Local<'_, Vec<Entity>>
)
Expand description
Update GlobalTransform
component of physics entities based on entity hierarchy and
Transform
component.