Implement interaction groups test mode and add the ClampedSum cofficient combine rule (#741)

This commit is contained in:
Dragos Daian
2025-10-30 11:51:22 +01:00
committed by GitHub
parent 36f91a6a07
commit 57c4e912a6
7 changed files with 108 additions and 22 deletions

View File

@@ -1,3 +1,11 @@
## Unreleased
- `InteractionGroups` struct now contains `InteractionTestMode`. Continues [rapier/pull/170](https://github.com/dimforge/rapier/pull/170) for [rapier/issues/622](https://github.com/dimforge/rapier/issues/622)
- `InteractionGroups` constructor now requires an `InteractionTestMode` parameter. If you want same behaviour as before, use `InteractionTestMode::And` (eg. `InteractionGroups::new(Group::GROUP_1, Group::GROUP_1, InteractionTestMode::And)`)
- `CoefficientCombineRule::Min` - now makes sure it uses a non zero value as result by using `coeff1.min(coeff2).abs()`
- `InteractionTestMode`: Specifies which method should be used to test interactions. Supports `AND` and `OR`.
- `CoefficientCombineRule::ClampedSum` - Adds the two coefficients and does a clamp to have at most 1.
## v0.30.1 (17 Oct. 2025)
- Kinematic rigid-bodies will no longer fall asleep if they have a nonzero velocity, even if that velocity is very