From 9817af1e0a37df39fe22117d06c05046387815ce Mon Sep 17 00:00:00 2001 From: Dragos Daian Date: Sun, 22 Sep 2024 22:37:31 +0200 Subject: [PATCH] Fixes default values for wasm32 for physics hooks --- src/pipeline/physics_hooks.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pipeline/physics_hooks.rs b/src/pipeline/physics_hooks.rs index 558962dd3..8df11cba1 100644 --- a/src/pipeline/physics_hooks.rs +++ b/src/pipeline/physics_hooks.rs @@ -144,12 +144,12 @@ impl Default for ActiveHooks { pub trait PhysicsHooks { /// Applies the contact pair filter. fn filter_contact_pair(&self, _context: &PairFilterContext) -> Option { - None + Some(SolverFlags::COMPUTE_IMPULSES) } /// Applies the intersection pair filter. fn filter_intersection_pair(&self, _context: &PairFilterContext) -> bool { - false + true } /// Modifies the set of contacts seen by the constraints solver.