Skip to content

Commit b0953bc

Browse files
authored
Merge pull request #132 from dimforge/intersections-handles
Fix handles usage in NarrowPhase::intersection_pair
2 parents d01cc8b + de7acac commit b0953bc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/geometry/narrow_phase.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,10 @@ impl RawNarrowPhase {
5252
}
5353
}
5454

55-
pub fn intersection_pair(&self, handle1: u32, handle2: u32) -> bool {
56-
self.0.intersection_pair_unknown_gen(handle1, handle2) == Some(true)
55+
pub fn intersection_pair(&self, handle1: FlatHandle, handle2: FlatHandle) -> bool {
56+
let handle1 = utils::collider_handle(handle1);
57+
let handle2 = utils::collider_handle(handle2);
58+
self.0.intersection_pair(handle1, handle2) == Some(true)
5759
}
5860
}
5961

0 commit comments

Comments
 (0)