Function avian3d::sync::sync_simple_transforms_physics
source · pub fn sync_simple_transforms_physics(
query: ParamSet<'_, '_, (Query<'_, '_, (&Transform, &mut GlobalTransform), (Or<(Changed<Transform>, Added<GlobalTransform>)>, Without<Parent>, Or<(Without<AncestorMarker<RigidBody>>, Without<AncestorMarker<ColliderMarker>>)>, Or<(With<RigidBody>, With<ColliderMarker>)>)>, Query<'_, '_, (Ref<'_, Transform>, &mut GlobalTransform), (Without<Parent>, Or<(Without<AncestorMarker<RigidBody>>, Without<AncestorMarker<ColliderMarker>>)>, Or<(With<RigidBody>, With<ColliderMarker>)>)>)>,
orphaned: RemovedComponents<'_, '_, Parent>
)
Expand description
Updates the GlobalTransform
component of physics entities that don’t have other physics entities in the hierarchy.