Skip to content

Commit

Permalink
update to rapier 0.22 (#568)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vrixyz committed Aug 8, 2024
1 parent ab93285 commit 480bb94
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Modified

- Update from rapier `0.21` to rapier `0.22`,
see [rapier's changelog](https://github.com/dimforge/rapier/blob/master/CHANGELOG.md).

### Fix

- Fix a crash when using `TimestepMode::Interpolated` and removing colliders
Expand Down
2 changes: 1 addition & 1 deletion bevy_rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
[dependencies]
bevy = { version = "0.14", default-features = false }
nalgebra = { version = "0.33", features = ["convert-glam027"] }
rapier2d = "0.21"
rapier2d = "0.22"
bitflags = "2.4"
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
Expand Down
2 changes: 1 addition & 1 deletion bevy_rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ async-collider = ["bevy/bevy_asset", "bevy/bevy_scene"]
[dependencies]
bevy = { version = "0.14", default-features = false }
nalgebra = { version = "0.33", features = ["convert-glam027"] }
rapier3d = "0.21"
rapier3d = "0.22"
bitflags = "2.4"
log = "0.4"
serde = { version = "1", features = ["derive"], optional = true }
Expand Down
6 changes: 3 additions & 3 deletions bevy_rapier_benches3d/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rapier3d = { features = ["profiler"], version = "0.21" }
bevy_rapier3d = { version = "0.27.0-rc.1", path = "../bevy_rapier3d" }
bevy = { version = "0.14.0-rc.3", default-features = false }
rapier3d = { features = ["profiler"], version = "0.22" }
bevy_rapier3d = { version = "0.27", path = "../bevy_rapier3d" }
bevy = { version = "0.14", default-features = false }
2 changes: 2 additions & 0 deletions src/geometry/shape_views/triangle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ macro_rules! impl_ref_methods(
///
/// The normal points such that it is collinear to `AB × AC` (where `×` denotes the cross
/// product).
#[cfg(feature = "dim3")]
#[inline]
pub fn normal(&self) -> Option<Vect> {
self.raw.normal().map(|n| (*n).into())
Expand All @@ -46,6 +47,7 @@ macro_rules! impl_ref_methods(
///
/// The vector points such that it is collinear to `AB × AC` (where `×` denotes the cross
/// product).
#[cfg(feature = "dim3")]
#[inline]
pub fn scaled_normal(&self) -> Vect {
self.raw.scaled_normal().into()
Expand Down

0 comments on commit 480bb94

Please sign in to comment.