Skip to content

Commit 513ab3d

Browse files
Fixes default values for wasm32 for physics hooks (#740)
* Fixes default values for wasm32 for physics hooks --------- Co-authored-by: Thierry Berger <[email protected]>
1 parent 71f65fe commit 513ab3d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- The region key has been replaced by an i64 in the f64 version of rapier, increasing the range before panics occur.
66
- Fix `BroadphaseMultiSap` not being able to serialize correctly with serde_json.
77
- Fix `KinematicCharacterController::move_shape` not respecting parameters `max_slope_climb_angle` and `min_slope_slide_angle`.
8+
- Fix wasm32 default values for physics hooks filter to be consistent with native: `COMPUTE_IMPULSES`.
89

910
### Added
1011

src/pipeline/physics_hooks.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,12 +144,12 @@ impl Default for ActiveHooks {
144144
pub trait PhysicsHooks {
145145
/// Applies the contact pair filter.
146146
fn filter_contact_pair(&self, _context: &PairFilterContext) -> Option<SolverFlags> {
147-
None
147+
Some(SolverFlags::COMPUTE_IMPULSES)
148148
}
149149

150150
/// Applies the intersection pair filter.
151151
fn filter_intersection_pair(&self, _context: &PairFilterContext) -> bool {
152-
false
152+
true
153153
}
154154

155155
/// Modifies the set of contacts seen by the constraints solver.

0 commit comments

Comments
 (0)