diff options
| author | Sébastien Crozet <developer@crozet.re> | 2022-07-05 15:47:59 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-05 15:47:59 +0200 |
| commit | 06ec9a0e76cea7a035b4335c591cd3fddd0d9999 (patch) | |
| tree | 39d57c778ee69399b654e11fa967e03b375f7ec2 /CHANGELOG.md | |
| parent | b8d46a6b1d3a639769c877f13f60f0dfc60536e3 (diff) | |
| parent | 7831ebfc3109d4a4c2029f50e432dd1d4be9ef82 (diff) | |
| download | rapier-06ec9a0e76cea7a035b4335c591cd3fddd0d9999.tar.gz rapier-06ec9a0e76cea7a035b4335c591cd3fddd0d9999.tar.bz2 rapier-06ec9a0e76cea7a035b4335c591cd3fddd0d9999.zip | |
Merge pull request #360 from dimforge/easier-mass-props
Improve the API for initializing/setting mass-properties
Diffstat (limited to 'CHANGELOG.md')
| -rw-r--r-- | CHANGELOG.md | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 105f375..0f1da52 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +## Unreleased +### Fixed + +### Modified +- The `RigidBodyBuilder::additional_mass` method will now result in the additional angular inertia + being automatically computed based on the shapes of the colliders attached to the rigid-body. +- Remove the deprecated methods `RigidBodyBuilder::mass`, `::principal_angular_inertia`, `::principal_inertia`. +- Remove the methods `RigidBodyBuilder::additional_principal_angular_inertia`. Use + `RigidBodyBuilder::additional_mass_properties` instead. +- The `Collider::density` method now always returns a `Real` (instead of an `Option<Real>`). + +### Added +- Add `RigidBody::recompute_mass_properties_from_colliders` to force the immediate computation + of a rigid-body’s mass properties (instead of waiting for them to be recomputed during the next + timestep). This is useful to be able to read immediately the result of a change of a rigid-body + additional mass-properties or a change of one of its collider’s mass-properties. +- Add `RigidBody::set_additional_mass` to set the additional mass for the collider. The additional + angular inertia is automatically computed based on the attached colliders shapes. +- Add `Collider::set_density`, `::set_mass`, `set_mass_properties`, to alter a collider’s mass + properties. Note that `::set_mass` will result in the collider’s angular inertia being automatically + computed based on this mass and on its shape. +- 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. + ## v0.13.0 (31 May 2022) ### Fixed - Fix incorrect sensor events being generated after collider removal. |
