Skip to main content

apply_soft_body_user_changes

Function apply_soft_body_user_changes 

Source
pub fn apply_soft_body_user_changes(
    rigid_body_sets: Query<'_, '_, &mut RapierRigidBodySet>,
    (changed_materials, changed_volume_factors, changed_disabled): (Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, &SoftBodyMaterial), Or<(Changed<SoftBodyMaterial>, Added<RapierSoftBodyHandle>)>>, Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, &SoftBodyVolumeFactor), Or<(Changed<SoftBodyVolumeFactor>, Added<RapierSoftBodyHandle>)>>, Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink), (With<SoftBodyDisabled>, Or<(Changed<SoftBodyDisabled>, Added<RapierSoftBodyHandle>)>)>),
    (changed_pinned, changed_targets): (Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, &SoftBodyPinnedParticles), Or<(Changed<SoftBodyPinnedParticles>, Added<RapierSoftBodyHandle>)>>, Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, &SoftBodyKinematicTargets), Or<(Changed<SoftBodyKinematicTargets>, Added<RapierSoftBodyHandle>)>>),
    changed_attachments: Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, Mut<'_, SoftBodyAttachments>), Or<(Changed<SoftBodyAttachments>, Added<RapierSoftBodyHandle>)>>,
    (changed_forces, changed_impulses): (Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, &SoftBodyExternalForce), Or<(Changed<SoftBodyExternalForce>, Added<RapierSoftBodyHandle>)>>, Query<'_, '_, (&RapierSoftBodyHandle, &RapierContextEntityLink, Mut<'_, SoftBodyExternalImpulse>), Or<(Changed<SoftBodyExternalImpulse>, Added<RapierSoftBodyHandle>)>>),
    pinned_clusters: Query<'_, '_, Entity, With<SoftBodyClusterPinned>>,
    (context_colliders, changed_colliders): (Query<'_, '_, &mut RapierContextColliders>, Query<'_, '_, (Entity, &RapierContextEntityLink, SoftBodyColliderComponents<'_>), (With<RapierSoftBodyHandle>, Or<(Changed<Friction>, Changed<Restitution>, Changed<CollisionGroups>, Changed<SolverGroups>, Changed<ActiveEvents>, Changed<ActiveHooks>, Changed<ActiveCollisionTypes>, Changed<ContactForceEventThreshold>, Changed<ContactSkin>, Changed<Sensor>, Added<RapierSoftBodyHandle>)>)>),
)
Expand description

System responsible for applying changes the user made to a soft-body-related component.