Skip to content

Commit d1c2bd6

Browse files
committed
Release v0.5.1
1 parent afcfb07 commit d1c2bd6

File tree

6 files changed

+26
-4
lines changed

6 files changed

+26
-4
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## v0.5.1
4+
### Fixed
5+
- Fix a bug where `query::contact` would return `None` for a all intersecting a cuboid
6+
in such a way that one of the cuboid's vertices coincides exactly with the ball's
7+
center.
8+
9+
310
## v0.5.0
411

512
### Modified

build/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.5.0"
3+
version = "0.5.1"
44
authors = [ "Sébastien Crozet <[email protected]>" ]
55

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

build/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.5.0"
3+
version = "0.5.1"
44
authors = [ "Sébastien Crozet <[email protected]>" ]
55

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

build/parry2d/tests/geometry/ball_cuboid_contact.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,18 @@ fn test_ball_cuboid_query_contact() {
1515
let ct = query::contact(&ball_pos, &ball, &cuboid_pos, &cuboid, 0.0).unwrap();
1616
assert!(ct.is_some());
1717
}
18+
19+
#[test]
20+
fn test_false_negative() {
21+
let contact = query::contact(
22+
&Isometry2::translation(1.0, 1.0),
23+
&Ball::new(1.0),
24+
&Isometry2::identity(),
25+
&Cuboid::new(Vector2::new(1.0, 1.0)),
26+
1.0,
27+
)
28+
.unwrap()
29+
.unwrap();
30+
31+
assert!(contact.dist < 0.0);
32+
}

build/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.5.0"
3+
version = "0.5.1"
44
authors = [ "Sébastien Crozet <[email protected]>" ]
55

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

build/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.5.0"
3+
version = "0.5.1"
44
authors = [ "Sébastien Crozet <[email protected]>" ]
55

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

0 commit comments

Comments
 (0)