aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2020-11-30 16:08:35 +0100
committerCrozet Sébastien <developer@crozet.re>2020-11-30 16:08:35 +0100
commit52d1160fbfcc87081a6f8e1f562537409f0469e6 (patch)
treeabc9e80a60948dd6ef413941b7b8b15436b1f4d7
parent1ac068b2066a75ca51e4d023c2d634971b932f7e (diff)
downloadrapier-0.4.0.tar.gz
rapier-0.4.0.tar.bz2
rapier-0.4.0.zip
Release v0.4.0v0.4.0
-rw-r--r--CHANGELOG12
-rw-r--r--build/rapier2d/Cargo.toml2
-rw-r--r--build/rapier3d/Cargo.toml2
-rw-r--r--build/rapier_testbed2d/Cargo.toml4
-rw-r--r--build/rapier_testbed3d/Cargo.toml4
5 files changed, 17 insertions, 7 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 253bb22..0c722e9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,8 +1,10 @@
-## v0.4.0 - WIP
+## v0.4.0
- The rigid-body `linvel`, `angvel`, and `position` fields are no longer public. Access using
their corresponding getters/setters. For example: `rb.linvel()`, `rb.set_linvel(vel, true)`.
- Add `RigidBodyBuilder::sleeping(true)` to allow the creation of a rigid-body that is asleep
at initialization-time.
+
+#### Locking translation and rotations of a rigid-body
- Add `RigidBodyBuilder::lock_rotations` to prevent a rigid-body from rotating because of forces.
- Add `RigidBodyBuilder::lock_translations` to prevent a rigid-body from translating because of forces.
- Add `RigidBodyBuilder::principal_inertia` for setting the principal inertia of a rigid-body, and/or
@@ -10,6 +12,14 @@
- Change `RigidBodyBuilder::mass` by adding a bool parameter indicating whether or not the collider
contributions should be taken into account in the future too.
+#### Reading contact and proximity information
+- Add `NarrowPhase::contacts_with` and `NarrowPhase::proximities_with` to retrieve all the contact
+ pairs and proximity pairs involving a specific collider.
+- Add `NarrowPhase::contact_pair` and `NarrowPhase::proximity_pair` to retrieve one specific contact
+ pair or proximity pair if it exists.
+- Add `NarrowPhase::contact_pairs`, and `NarrowPhase::proximity_pairs` to retrieve all the contact or
+ proximity pairs detected by the narrow-phase.
+
## v0.3.2
- Add linear and angular damping. The damping factor can be set with `RigidBodyBuilder::linear_damping` and
`RigidBodyBuilder::angular_damping`.
diff --git a/build/rapier2d/Cargo.toml b/build/rapier2d/Cargo.toml
index 1c24a5d..ca183cc 100644
--- a/build/rapier2d/Cargo.toml
+++ b/build/rapier2d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier2d"
-version = "0.3.2"
+version = "0.4.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "2-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier2d"
diff --git a/build/rapier3d/Cargo.toml b/build/rapier3d/Cargo.toml
index 7e98cdf..3a00035 100644
--- a/build/rapier3d/Cargo.toml
+++ b/build/rapier3d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier3d"
-version = "0.3.2"
+version = "0.4.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "3-dimensional physics engine in Rust."
documentation = "http://docs.rs/rapier3d"
diff --git a/build/rapier_testbed2d/Cargo.toml b/build/rapier_testbed2d/Cargo.toml
index 15bc5f2..0b981e3 100644
--- a/build/rapier_testbed2d/Cargo.toml
+++ b/build/rapier_testbed2d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed2d"
-version = "0.3.0"
+version = "0.4.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "Testbed for the 2-dimensional physics engine in Rust."
homepage = "http://rapier.org"
@@ -40,5 +40,5 @@ md5 = "0.7"
[dependencies.rapier2d]
path = "../rapier2d"
-version = "0.3"
+version = "0.4"
features = [ "serde-serialize" ]
diff --git a/build/rapier_testbed3d/Cargo.toml b/build/rapier_testbed3d/Cargo.toml
index 9034fdd..3019021 100644
--- a/build/rapier_testbed3d/Cargo.toml
+++ b/build/rapier_testbed3d/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "rapier_testbed3d"
-version = "0.3.0"
+version = "0.4.0"
authors = [ "Sébastien Crozet <developer@crozet.re>" ]
description = "Testbed for the 3-dimensional physics engine in Rust."
homepage = "http://rapier.org"
@@ -43,5 +43,5 @@ serde = { version = "1", features = [ "derive" ] }
[dependencies.rapier3d]
path = "../rapier3d"
-version = "0.3"
+version = "0.4"
features = [ "serde-serialize" ]