Skip to main content

apply_soft_body_cluster_changes

Function apply_soft_body_cluster_changes 

Source
pub fn apply_soft_body_cluster_changes(
    rigid_body_sets: Query<'_, '_, &mut RapierRigidBodySet>,
    pinned: Query<'_, '_, (Entity, &RapierContextEntityLink), (With<SoftBodyClusterPinned>, Or<(Changed<SoftBodyClusterPinned>, Or<(Added<RapierRigidBodyHandle>, Added<RapierSoftBodyHandle>)>)>)>,
    targets: Query<'_, '_, (Entity, &RapierContextEntityLink, &SoftBodyClusterKinematicTarget), Or<(Changed<SoftBodyClusterKinematicTarget>, Or<(Added<RapierRigidBodyHandle>, Added<RapierSoftBodyHandle>)>)>>,
    shape_matching: Query<'_, '_, (Entity, &RapierContextEntityLink, &SoftBodyClusterShapeMatching), Or<(Changed<SoftBodyClusterShapeMatching>, Or<(Added<RapierRigidBodyHandle>, Added<RapierSoftBodyHandle>)>)>>,
    materials: Query<'_, '_, (Entity, &RapierContextEntityLink, &SoftBodyClusterMaterial), Or<(Changed<SoftBodyClusterMaterial>, Or<(Added<RapierRigidBodyHandle>, Added<RapierSoftBodyHandle>)>)>>,
)
Expand description

System responsible for applying the changes the user made to the cluster components (SoftBodyClusterPinned, SoftBodyClusterKinematicTarget, SoftBodyClusterShapeMatching and SoftBodyClusterMaterial).