diff options
| author | Dragos Daian <daian.dragos@yahoo.com> | 2024-11-15 11:00:14 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-15 11:00:14 +0100 |
| commit | 513ab3d1fcba665ab840a96e0b9e7a82918fc96f (patch) | |
| tree | c82ef8ccc209ee68ca15c2201bd511536744fbc0 /src | |
| parent | 71f65fe55a5918a721252a1f7bb74531137ee665 (diff) | |
| download | rapier-513ab3d1fcba665ab840a96e0b9e7a82918fc96f.tar.gz rapier-513ab3d1fcba665ab840a96e0b9e7a82918fc96f.tar.bz2 rapier-513ab3d1fcba665ab840a96e0b9e7a82918fc96f.zip | |
Fixes default values for wasm32 for physics hooks (#740)
* Fixes default values for wasm32 for physics hooks
---------
Co-authored-by: Thierry Berger <contact@thierryberger.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/pipeline/physics_hooks.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipeline/physics_hooks.rs b/src/pipeline/physics_hooks.rs index 558962d..8df11cb 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<SolverFlags> { - 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. |
