Skip to content

Commit 74ea3db

Browse files
committed
Release v0.22.1
1 parent 8f14e16 commit 74ea3db

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## 0.22.1
2+
3+
### Added
4+
5+
- Add `Bvh::insert_with_change_detection` which runs an insertion unless the inserted aabb is enclosed in the
6+
existing one. This differs from `insert_or_update_partially` because the former will update parent AABBs so
7+
they enclose their descendants.
8+
19
## 0.22.0
210

311
### Fixed

crates/parry2d-f64/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parry2d-f64"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55

66
description = "2 dimensional collision detection library in Rust. 64-bit precision version."

crates/parry2d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parry2d"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55

66
description = "2 dimensional collision detection library in Rust."

crates/parry3d-f64/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parry3d-f64"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55

66
description = "3 dimensional collision detection library in Rust. 64-bits precision version."

crates/parry3d/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "parry3d"
3-
version = "0.22.0"
3+
version = "0.22.1"
44
authors = ["Sébastien Crozet <developer@crozet.re>"]
55

66
description = "3 dimensional collision detection library in Rust."

src/partitioning/bvh/bvh_insert.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,17 @@ impl Bvh {
1111
self.insert_with_change_detection(aabb, leaf_index, 0.0)
1212
}
1313

14-
1514
/// Inserts a leaf into this BVH, or updates it if already exists.
1615
///
1716
/// If the `aabb` is already contained by the existing leaf node AABB, nothing is modified.
1817
/// Otherwise, the aabb being effectively inserted is equal to `aabb` enlarged by the
1918
/// `change_detection_margin`.
20-
pub fn insert_with_change_detection(&mut self, aabb: Aabb, leaf_index: u32, change_detection_margin: Real) {
19+
pub fn insert_with_change_detection(
20+
&mut self,
21+
aabb: Aabb,
22+
leaf_index: u32,
23+
change_detection_margin: Real,
24+
) {
2125
if let Some(leaf) = self.leaf_node_indices.get(leaf_index as usize) {
2226
let node = &mut self.nodes[*leaf];
2327

0 commit comments

Comments
 (0)