Skip to main content

reset_removed_soft_body_components

Function reset_removed_soft_body_components 

Source
pub fn reset_removed_soft_body_components(
    rigid_body_sets: Query<'_, '_, &mut RapierRigidBodySet>,
    soft_bodies: Query<'_, '_, &SoftBody>,
    (removed_materials, removed_volume_factors, removed_disabled): ((RemovedComponents<'_, '_, SoftBodyMaterial>, Query<'_, '_, (), With<SoftBodyMaterial>>), (RemovedComponents<'_, '_, SoftBodyVolumeFactor>, Query<'_, '_, (), With<SoftBodyVolumeFactor>>), (RemovedComponents<'_, '_, SoftBodyDisabled>, Query<'_, '_, (), With<SoftBodyDisabled>>)),
    (removed_pinned, removed_attachments, removed_forces): ((RemovedComponents<'_, '_, SoftBodyPinnedParticles>, Query<'_, '_, (), With<SoftBodyPinnedParticles>>), (RemovedComponents<'_, '_, SoftBodyAttachments>, Query<'_, '_, (), With<SoftBodyAttachments>>), (RemovedComponents<'_, '_, SoftBodyExternalForce>, Query<'_, '_, (), With<SoftBodyExternalForce>>)),
    pinned_clusters: Query<'_, '_, Entity, With<SoftBodyClusterPinned>>,
)
Expand description

System responsible for resetting the Rapier soft-body properties to the values of their SoftBody builder when the corresponding component is removed by the user.