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>
This commit is contained in:
Dragos Daian
2024-11-15 11:00:14 +01:00
committed by GitHub
parent 71f65fe55a
commit 513ab3d1fc
2 changed files with 3 additions and 2 deletions

View File

@@ -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.