Add ActiveEvents::CONTACT_FORCE_EVENTS for consistency with ActiveEvents::COLLISION_EVENTS

This commit is contained in:
Sébastien Crozet
2022-07-07 10:58:10 +02:00
parent 06ec9a0e76
commit 73788a21ab
4 changed files with 21 additions and 6 deletions

View File

@@ -22,6 +22,10 @@
- Add `ColliderBuilder::mass` to set the mass of the collider instead of its density. Its angular
inertia tensor will be automatically computed based on this mass and its shape.
- Add `Collider::mass` and `Collider::volume` to retrieve the mass or volume of a collider.
- Add the `ContactForceEvent` event. This event is useful to read contact forces. A `ContactForceEvent`
is generated whenever the sum of the magnitudes of the forces applied by contacts between two colliders
exceeds the value specified by `Collider::contact_force_event_threshold` on any of the two colliders with
the `ActiveEvents::CONTACT_FORCE_EVENT` flag set.
## v0.13.0 (31 May 2022)
### Fixed