cargo fmt
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nolan Darilek 2022-08-02 17:17:08 -05:00
parent 627f63211d
commit 57091d7e9e

View File

@ -505,13 +505,7 @@ impl GlobalTransformExt for GlobalTransform {
);
let closest =
closest_points(&pos1, &*collider.raw, &pos2, &*other_collider.raw, f32::MAX).unwrap();
let distance = distance(
&pos1,
&*collider.raw,
&pos2,
&*other_collider.raw,
)
.unwrap() as u32;
let distance = distance(&pos1, &*collider.raw, &pos2, &*other_collider.raw).unwrap() as u32;
let tile_or_tiles = if distance == 1 { "tile" } else { "tiles" };
if distance > 0 {
if let ClosestPoints::WithinMargin(p1, p2) = closest {