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:
@@ -5,6 +5,7 @@
|
|||||||
- The region key has been replaced by an i64 in the f64 version of rapier, increasing the range before panics occur.
|
- The region key has been replaced by an i64 in the f64 version of rapier, increasing the range before panics occur.
|
||||||
- Fix `BroadphaseMultiSap` not being able to serialize correctly with serde_json.
|
- Fix `BroadphaseMultiSap` not being able to serialize correctly with serde_json.
|
||||||
- Fix `KinematicCharacterController::move_shape` not respecting parameters `max_slope_climb_angle` and `min_slope_slide_angle`.
|
- Fix `KinematicCharacterController::move_shape` not respecting parameters `max_slope_climb_angle` and `min_slope_slide_angle`.
|
||||||
|
- Fix wasm32 default values for physics hooks filter to be consistent with native: `COMPUTE_IMPULSES`.
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|||||||
@@ -144,12 +144,12 @@ impl Default for ActiveHooks {
|
|||||||
pub trait PhysicsHooks {
|
pub trait PhysicsHooks {
|
||||||
/// Applies the contact pair filter.
|
/// Applies the contact pair filter.
|
||||||
fn filter_contact_pair(&self, _context: &PairFilterContext) -> Option<SolverFlags> {
|
fn filter_contact_pair(&self, _context: &PairFilterContext) -> Option<SolverFlags> {
|
||||||
None
|
Some(SolverFlags::COMPUTE_IMPULSES)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Applies the intersection pair filter.
|
/// Applies the intersection pair filter.
|
||||||
fn filter_intersection_pair(&self, _context: &PairFilterContext) -> bool {
|
fn filter_intersection_pair(&self, _context: &PairFilterContext) -> bool {
|
||||||
false
|
true
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Modifies the set of contacts seen by the constraints solver.
|
/// Modifies the set of contacts seen by the constraints solver.
|
||||||
|
|||||||
Reference in New Issue
Block a user