Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/geometry/contact_pair.rs
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ pub struct ContactPair {
/// Event bookkeeping: `CollisionEvent::Started` emission and force-event
/// threshold status.
pub(crate) event_status: PairEventStatus,
#[cfg_attr(feature = "serde-serialize", serde(skip))]
pub(crate) workspace: Option<ContactManifoldsWorkspace>,
/// State cached at the last full narrow-phase update, allowing the update to be
/// skipped ("recycled") while the colliders' relative pose stays within
Expand Down
8 changes: 8 additions & 0 deletions src/geometry/narrow_phase/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,14 @@ impl NarrowPhase {
}
}

/// Replaces the query dispatcher used by this narrow-phase.
pub fn set_query_dispatcher<D>(&mut self, d: D)
where
D: 'static + PersistentQueryDispatcher<ContactManifoldData, ContactData>,
{
self.query_dispatcher = Arc::new(d);
}

fn refresh_awake_body_mask(&mut self, islands: &IslandManager) {
self.awake_body_mask.clear();
let len = islands
Expand Down