pub fn on_change_context(
q_changed_contexts: Query<'_, '_, (Entity, Ref<'_, RapierContextEntityLink>), Changed<RapierContextEntityLink>>,
q_children: Query<'_, '_, &Children>,
q_physics_context: Query<'_, '_, &RapierContextEntityLink>,
q_context: Query<'_, '_, (&RapierContextColliders, &RapierContextJoints, &RapierRigidBodySet)>,
commands: Commands<'_, '_>,
)
Expand description
Reacts to modifications to RapierContextEntityLink
to move an entity’s physics data from a context to another.
Also recursively bubbles down context changes to children & flags them to apply any needed physics changes