Skip to content

Commit

Permalink
Release v0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sebcrozet committed Apr 30, 2022
1 parent 4236027 commit b22d8ed
Show file tree
Hide file tree
Showing 10 changed files with 42 additions and 32 deletions.
18 changes: 14 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@

## Unreleased
## v0.12.0 (30 Apr. 2022)
### Fixed
- Fix the simulation when the `parallel` feature is enabled.
- Fix bug where damping would not be applied properly to some bodies.
- Fix panics caused by various situations (contact or joints) involving rigid-bodies with locked translations/rotations.

- Fix bug where collider modifications (like changes of collision groups, or shape) would not wake-up their attached
rigid-body, or would not have any effect on pre-existing contacts.
- Fix the automatic update of a rigid-body’s mass properties after changing one of its attached colliders.
- Fix the broad-phase becoming potentially invalid after a change of collision groups.

### Modified
- Switch to `nalgebra` 0.31.
- Switch to `parry` 0.9.
- Rename `JointHandle` to `ImpulseJointHandle`.
- Rename `RigidBodyMassPropsFlags` to `LockedAxes`.
- Rename `RigidBody::apply_force`, `::apply_torque`, `::apply_force_at_point` to `::add_force`,
Expand All @@ -24,10 +29,13 @@
which are more stable.
- Calling the `.build()` function from builders (`RigidBodyBuilder`, `ColliderBuilder`, etc.) is no longer necessary
whan adding them to sets. It is automatically called thanks to `Into<_>` implementations.
- The `ComponentSet` abstractions (and related `_generic` methods like `PhysicsPipeline::step_generic`) have been
removed. Custom storage for colliders and rigid-bodies are no longer possible: use the built-in `RigidBodySet` and
`ColliderSet` instead.

### Semantic modifications
These are changes in the behavior of the physics engine that are not necessarily
reflected by an API change:
reflected by an API change. See [#304](https://github.com/dimforge/rapier/pull/304) for extensive details.
- `RigidBody::set_linvel` and `RigidBody::set_angvel` no longer modify the velocity of static bodies.
- `RigidBody::set_body_type` will reset the velocity of a rigid-body to zero if it is static.
- Don’t automatically clear forces at the end of a timestep.
Expand All @@ -43,7 +51,9 @@ reflected by an API change:
- Adds a `bool` argument to `RigidBodySet::remove`. If set to `false`, the colliders attached to the rigid-body
won’t be automatically deleted (they will only be detached from the deleted rigid-body instead).
- Add `RigidBody::reset_forces` and `RigidBody::reset_torques` to reset all the forces and torques added to the
rigid-bodiy by the user.
rigid-body by the user.
- Add the `debug-render` cargo feature that enables the `DebugRenderPipeline`: a line-based backend-agnostic
renderer to debug the state of the physics engine.

## v0.12.0-alpha.0 (2 Jan. 2022)
### Fixed
Expand Down
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ resolver = "2"

#kiss3d = { git = "https://github.com/sebcrozet/kiss3d" }
#nalgebra = { git = "https://github.com/dimforge/nalgebra", branch = "dev" }
parry2d = { git = "https://github.com/dimforge/parry", branch = "master" }
parry3d = { git = "https://github.com/dimforge/parry", branch = "master" }
parry2d-f64 = { git = "https://github.com/dimforge/parry", branch = "master" }
parry3d-f64 = { git = "https://github.com/dimforge/parry", branch = "master" }
#parry2d = { git = "https://github.com/dimforge/parry", branch = "master" }
#parry3d = { git = "https://github.com/dimforge/parry", branch = "master" }
#parry2d-f64 = { git = "https://github.com/dimforge/parry", branch = "master" }
#parry3d-f64 = { git = "https://github.com/dimforge/parry", branch = "master" }

[profile.release]
#debug = true
Expand Down
6 changes: 3 additions & 3 deletions crates/rapier2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier2d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "2-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier2d"
Expand Down Expand Up @@ -47,8 +47,8 @@ required-features = [ "dim2", "f64" ]
vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.30"
parry2d-f64 = "0.8"
nalgebra = "0.31"
parry2d-f64 = "0.9"
simba = "0.7"
approx = "0.5"
rayon = { version = "1", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/rapier2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier2d"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "2-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier2d"
Expand Down Expand Up @@ -47,8 +47,8 @@ required-features = [ "dim2", "f32" ]
vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.30"
parry2d = "0.8"
nalgebra = "0.31"
parry2d = "0.9"
simba = "0.7"
approx = "0.5"
rayon = { version = "1", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/rapier3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier3d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "3-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier3d"
Expand Down Expand Up @@ -47,8 +47,8 @@ required-features = [ "dim3", "f64" ]
vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.30"
parry3d-f64 = "0.8"
nalgebra = "0.31"
parry3d-f64 = "0.9"
simba = "0.7"
approx = "0.5"
rayon = { version = "1", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/rapier3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier3d"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "3-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier3d"
Expand Down Expand Up @@ -47,8 +47,8 @@ required-features = [ "dim3", "f32" ]
vec_map = { version = "0.8", optional = true }
instant = { version = "0.1", features = [ "now" ]}
num-traits = "0.2"
nalgebra = "0.30"
parry3d = "0.8"
nalgebra = "0.31"
parry3d = "0.9"
simba = "0.7"
approx = "0.5"
rayon = { version = "1", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions crates/rapier_testbed2d-f64/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed2d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
homepage = "http://rapier.org"
Expand All @@ -26,7 +26,7 @@ other-backends = [ "wrapped2d" ]


[dependencies]
nalgebra = { version = "0.30", features = [ "rand" ] }
nalgebra = { version = "0.31", features = [ "rand" ] }
rand = "0.8"
rand_pcg = "0.3"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
Expand Down Expand Up @@ -54,5 +54,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
[dependencies.rapier]
package = "rapier2d-f64"
path = "../rapier2d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
features = [ "serde-serialize", "debug-render" ]
6 changes: 3 additions & 3 deletions crates/rapier_testbed2d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed2d"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "Testbed for the Rapier 2-dimensional physics engine in Rust."
homepage = "http://rapier.org"
Expand All @@ -26,7 +26,7 @@ other-backends = [ "wrapped2d" ]


[dependencies]
nalgebra = { version = "0.30", features = [ "rand" ] }
nalgebra = { version = "0.31", features = [ "rand" ] }
rand = "0.8"
rand_pcg = "0.3"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
Expand Down Expand Up @@ -54,5 +54,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
[dependencies.rapier]
package = "rapier2d"
path = "../rapier2d"
version = "0.12.0-alpha.1"
version = "0.12.0"
features = [ "serde-serialize", "debug-render" ]
6 changes: 3 additions & 3 deletions crates/rapier_testbed3d-f64/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed3d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
homepage = "http://rapier.org"
Expand All @@ -24,7 +24,7 @@ dim3 = [ ]
parallel = [ "rapier/parallel", "num_cpus" ]

[dependencies]
nalgebra = { version = "0.30", features = [ "rand" ] }
nalgebra = { version = "0.31", features = [ "rand" ] }
rand = "0.8"
rand_pcg = "0.3"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
Expand Down Expand Up @@ -52,5 +52,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
[dependencies.rapier]
package = "rapier3d-f64"
path = "../rapier3d-f64"
version = "0.12.0-alpha.1"
version = "0.12.0"
features = [ "serde-serialize", "debug-render" ]
6 changes: 3 additions & 3 deletions crates/rapier_testbed3d/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed3d"
version = "0.12.0-alpha.1"
version = "0.12.0"
authors = [ "Sébastien Crozet <[email protected]>" ]
description = "Testbed for the Rapier 3-dimensional physics engine in Rust."
homepage = "http://rapier.org"
Expand All @@ -25,7 +25,7 @@ parallel = [ "rapier/parallel", "num_cpus" ]
other-backends = [ "physx", "physx-sys", "glam" ]

[dependencies]
nalgebra = { version = "0.30", features = [ "rand" ] }
nalgebra = { version = "0.31", features = [ "rand" ] }
rand = "0.8"
rand_pcg = "0.3"
instant = { version = "0.1", features = [ "web-sys", "now" ]}
Expand Down Expand Up @@ -56,5 +56,5 @@ bevy = {version = "0.7", default-features = false, features = ["bevy_winit", "re
[dependencies.rapier]
package = "rapier3d"
path = "../rapier3d"
version = "0.12.0-alpha.1"
version = "0.12.0"
features = [ "serde-serialize", "debug-render" ]

0 comments on commit b22d8ed

Please sign in to comment.