jcornaz / heron

[DISCONTINUED] An ergonomic physics API for bevy games
MIT License
292 stars 44 forks source link

chore(deps): update rapier to 0.14.0 (minor) #288

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 2 years ago

Mend Renovate

This PR contains the following updates:

Package Type Update Change
rapier2d (source) dependencies minor 0.13.0 -> 0.14.0
rapier3d (source) dependencies minor 0.13.0 -> 0.14.0

Release Notes

dimforge/rapier ### [`v0.14.0`](https://togithub.com/dimforge/rapier/blob/HEAD/CHANGELOG.md#v0140-09-July-2022) ##### Fixed - Fix unpredictable broad-phase panic when using small colliders in the simulation. - Fix collision events being incorrectly generated for any shape that produces multiple contact manifolds (like triangle meshes). - Fix panic in the `CollisionPipeline` if a collider is both added and removed before a call to `CollisionPipeline::step`. ##### 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`). - Rename `RigidBody::restrict_rotations` and `RigidBody::restrict_translations` to `RigidBody::set_enabled_rotations` and `RigidBody::set_enabled_translations`. - Rename `RigidBodyBuilder::restrict_rotations` and `RigidBodyBuilder::restrict_translations` to `RigidBodyBuilder::enabled_rotations` and `RigidBodyBuilder::enabled_translations`. ##### 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. - Add the `QueryFilter` that is now used by all the scene queries instead of the `CollisionGroups` and `Fn(ColliderHandle) -> bool` closure. This `QueryFilter` provides easy access to most common filtering strategies (e.g. dynamic bodies only, excluding one particular collider, etc.) for scene queries. - Add force reporting based on contact force events. The `EventHandler` trait has been modified to include the method `EventHandler::handle_contact_force_event`. Contact force events are generated whenever the sum of the magnitudes of all the forces between two colliders is greater than any of their `Collider::contact_force_event_threshold` values (only the colliders wit the `ActiveEvents::CONTACT_FORCE_EVENT` flag set are taken into account for this threshold). - Add the `ContactForceEvent` struct that is generated by the `ChannelEventCollector` to report contact force events.

Configuration

📅 Schedule: Branch creation - "every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Mend Renovate. View repository job log here.

renovate[bot] commented 1 year ago

Renovate Ignore Notification

As this PR has been closed unmerged, Renovate will now ignore this update (0.14.0). You will still receive a PR once a newer version is released, so if you wish to permanently ignore this dependency, please add it to the ignoreDeps array of your renovate config.

If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.