pub fn block_action(
    brain_q: Query<'_, '_, (&Parent, Entity), With<CenterBlockFlag>>,
    block_q: Query<'_, '_, (Entity, &Parent, &mut ImpulseJoint)>,
    nn_id_q: Query<'_, '_, &NeuronId>,
    bbn: ResMut<'_, BevyBlockNeurons>,
    cf_events: EventReader<'_, '_, ContactForceEvent>,
    collider_q: Query<'_, '_, &ColliderFlag>,
    joint_info_q: Query<'_, '_, &JointInfo>,
    depth_q: Query<'_, '_, &BlockDepth>,
    blob_q: Query<'_, '_, &BlobInfo>,
    p_anchor_q: Query<'_, '_, &ParentAnchor>
)
Expand description

CORE FUNCTION

Update all blobs’ motor condition to let blobs preform action.

select Query<(&Parent, &mut ImpulseJoint) means the center block will not be selected

Can not use EventReader multiple times each frame. Events been read will be marked as read.