aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2024-07-20 17:14:43 +0200
committerGitHub <noreply@github.com>2024-07-20 17:14:43 +0200
commitcf74150763dd575bc0399087e845e9be62aba56f (patch)
tree9670b7b3d817aea9255a69efa26967389880b409
parent55a7d8b7ad37227f5c97131c4852a94efe748194 (diff)
downloadrapier-0.22.0.tar.gz
rapier-0.22.0.tar.bz2
rapier-0.22.0.zip
Release v0.22.0 (#695)v0.22.0
-rw-r--r--CHANGELOG.md4
-rw-r--r--crates/rapier2d-f64/Cargo.toml4
-rw-r--r--crates/rapier2d/Cargo.toml4
-rw-r--r--crates/rapier3d-f64/Cargo.toml4
-rw-r--r--crates/rapier3d-stl/Cargo.toml2
-rw-r--r--crates/rapier3d-stl/src/lib.rs2
-rw-r--r--crates/rapier3d-urdf/Cargo.toml2
-rw-r--r--crates/rapier3d/Cargo.toml4
-rw-r--r--crates/rapier_testbed2d-f64/Cargo.toml4
-rw-r--r--crates/rapier_testbed2d/Cargo.toml4
-rw-r--r--crates/rapier_testbed3d-f64/Cargo.toml4
-rw-r--r--crates/rapier_testbed3d/Cargo.toml4
-rw-r--r--src_testbed/testbed.rs1
13 files changed, 23 insertions, 20 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9a1dbf8..f05a17f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,4 +1,4 @@
-## Unreleased
+## v0.22.0 (20 July 2024)
### Fix
@@ -15,6 +15,8 @@
### Modified
+- Update parry to v0.17. Refer to [its changelog](https://github.com/dimforge/parry/blob/master/CHANGELOG.md#v0170) for
+ further details.
- Divided by two the value of each `QueryFilterFlags` variant so that
the smallest one is 1 instead of 2 (fixes a bug in rapier.js).
- `BroadphaseMultiSap` now serializes its `colliders_proxy_ids` as `Vec[(ColliderHandle, BroadPhaseProxyIndex)]`.
diff --git a/crates/rapier2d-f64/Cargo.toml b/crates/rapier2d-f64/Cargo.toml
index e5347a5..2a25f48 100644
--- a/crates/rapier2d-f64/Cargo.toml
+++ b/crates/rapier2d-f64/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier2d-f64"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "2-dimensional physics engine in Rust."
documentation = "https://docs.rs/rapier2d"
@@ -64,7 +64,7 @@ vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = ["now"], optional = true }
num-traits = "0.2"
nalgebra = "0.33"
-parry2d-f64 = "0.16.0"
+parry2d-f64 = "0.17.0"
simba = "0.9"
approx = "0.5"
rayon = { version = "1", optional = true }
diff --git a/crates/rapier2d/Cargo.toml b/crates/rapier2d/Cargo.toml
index e8e1ad2..0264f5f 100644
--- a/crates/rapier2d/Cargo.toml
+++ b/crates/rapier2d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier2d"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "2-dimensional physics engine in Rust."
documentation = "https://docs.rs/rapier2d"
@@ -64,7 +64,7 @@ vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = ["now"], optional = true }
num-traits = "0.2"
nalgebra = "0.33"
-parry2d = "0.16.0"
+parry2d = "0.17.0"
simba = "0.9"
approx = "0.5"
rayon = { version = "1", optional = true }
diff --git a/crates/rapier3d-f64/Cargo.toml b/crates/rapier3d-f64/Cargo.toml
index c1d9ce7..aadd01a 100644
--- a/crates/rapier3d-f64/Cargo.toml
+++ b/crates/rapier3d-f64/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier3d-f64"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "3-dimensional physics engine in Rust."
documentation = "https://docs.rs/rapier3d"
@@ -67,7 +67,7 @@ vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = ["now"], optional = true }
num-traits = "0.2"
nalgebra = "0.33"
-parry3d-f64 = "0.16.0"
+parry3d-f64 = "0.17.0"
simba = "0.9"
approx = "0.5"
rayon = { version = "1", optional = true }
diff --git a/crates/rapier3d-stl/Cargo.toml b/crates/rapier3d-stl/Cargo.toml
index fd6fc86..38b3508 100644
--- a/crates/rapier3d-stl/Cargo.toml
+++ b/crates/rapier3d-stl/Cargo.toml
@@ -16,4 +16,4 @@ edition = "2021"
thiserror = "1.0.61"
stl_io = "0.7"
-rapier3d = { version = "0.21", path = "../rapier3d" }
+rapier3d = { version = "0.22", path = "../rapier3d" }
diff --git a/crates/rapier3d-stl/src/lib.rs b/crates/rapier3d-stl/src/lib.rs
index 0273bc0..7b22e74 100644
--- a/crates/rapier3d-stl/src/lib.rs
+++ b/crates/rapier3d-stl/src/lib.rs
@@ -90,7 +90,7 @@ pub fn load_from_raw_mesh(
let mut vertices: Vec<_> = raw_mesh
.vertices
.iter()
- .map(|xyz| Point::new(xyz[0] as Real, xyz[1] as Real, xyz[2] as Real))
+ .map(|xyz| Point::new(xyz[0], xyz[1], xyz[2]))
.collect();
vertices
.iter_mut()
diff --git a/crates/rapier3d-urdf/Cargo.toml b/crates/rapier3d-urdf/Cargo.toml
index 0e31220..767f269 100644
--- a/crates/rapier3d-urdf/Cargo.toml
+++ b/crates/rapier3d-urdf/Cargo.toml
@@ -22,5 +22,5 @@ bitflags = "2"
# NOTE: we are not using the (more recent) urdf-rs crate because of https://github.com/openrr/urdf-rs/issues/94
xurdf = "0.2"
-rapier3d = { version = "0.21", path = "../rapier3d" }
+rapier3d = { version = "0.22", path = "../rapier3d" }
rapier3d-stl = { version = "0.2.0", path = "../rapier3d-stl", optional = true }
diff --git a/crates/rapier3d/Cargo.toml b/crates/rapier3d/Cargo.toml
index 03947ef..77dd8ae 100644
--- a/crates/rapier3d/Cargo.toml
+++ b/crates/rapier3d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier3d"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "3-dimensional physics engine in Rust."
documentation = "https://docs.rs/rapier3d"
@@ -67,7 +67,7 @@ vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = ["now"], optional = true }
num-traits = "0.2"
nalgebra = "0.33"
-parry3d = "0.16.0"
+parry3d = "0.17.0"
simba = "0.9"
approx = "0.5"
rayon = { version = "1", optional = true }
diff --git a/crates/rapier_testbed2d-f64/Cargo.toml b/crates/rapier_testbed2d-f64/Cargo.toml
index 0f5e201..0aa3c56 100644
--- a/crates/rapier_testbed2d-f64/Cargo.toml
+++ b/crates/rapier_testbed2d-f64/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed2d-f64"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
homepage = "http://rapier.rs"
@@ -84,5 +84,5 @@ bevy = { version = "0.13", default-features = false, features = [
[dependencies.rapier]
package = "rapier2d-f64"
path = "../rapier2d-f64"
-version = "0.21.0"
+version = "0.22.0"
features = ["serde-serialize", "debug-render", "profiler"]
diff --git a/crates/rapier_testbed2d/Cargo.toml b/crates/rapier_testbed2d/Cargo.toml
index ad34e56..436cb26 100644
--- a/crates/rapier_testbed2d/Cargo.toml
+++ b/crates/rapier_testbed2d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed2d"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
homepage = "http://rapier.rs"
@@ -84,5 +84,5 @@ bevy = { version = "0.13", default-features = false, features = [
[dependencies.rapier]
package = "rapier2d"
path = "../rapier2d"
-version = "0.21.0"
+version = "0.22.0"
features = ["serde-serialize", "debug-render", "profiler"]
diff --git a/crates/rapier_testbed3d-f64/Cargo.toml b/crates/rapier_testbed3d-f64/Cargo.toml
index ad2033b..95091dd 100644
--- a/crates/rapier_testbed3d-f64/Cargo.toml
+++ b/crates/rapier_testbed3d-f64/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed3d-f64"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
homepage = "http://rapier.rs"
@@ -81,5 +81,5 @@ bevy = { version = "0.13", default-features = false, features = [
[dependencies.rapier]
package = "rapier3d-f64"
path = "../rapier3d-f64"
-version = "0.21.0"
+version = "0.22.0"
features = ["serde-serialize", "debug-render", "profiler"]
diff --git a/crates/rapier_testbed3d/Cargo.toml b/crates/rapier_testbed3d/Cargo.toml
index 56290a4..9b01ccb 100644
--- a/crates/rapier_testbed3d/Cargo.toml
+++ b/crates/rapier_testbed3d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed3d"
-version = "0.21.0"
+version = "0.22.0"
authors = ["Sébastien Crozet <sebcrozet@dimforge.com>"]
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
homepage = "http://rapier.rs"
@@ -85,5 +85,5 @@ bevy = { version = "0.13", default-features = false, features = [
[dependencies.rapier]
package = "rapier3d"
path = "../rapier3d"
-version = "0.21.0"
+version = "0.22.0"
features = ["serde-serialize", "debug-render", "profiler"]
diff --git a/src_testbed/testbed.rs b/src_testbed/testbed.rs
index c2e117c..76b10d4 100644
--- a/src_testbed/testbed.rs
+++ b/src_testbed/testbed.rs
@@ -1,4 +1,5 @@
#![allow(clippy::bad_bit_mask)] // otherwise clippy complains because of TestbedStateFlags::NONE which is 0.
+#![allow(clippy::unnecessary_cast)] // allowed for f32 -> f64 cast for the f64 testbed.
use std::env;
use std::mem;