Skip to content

Commit 412d1bc

Browse files
committed
fixed typo and formatted code
1 parent 591d0e8 commit 412d1bc

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/pipeline/collision_pipeline.rs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ mod tests {
293293

294294
#[cfg(feature = "dim2")]
295295
#[test]
296-
fn test_collider_move_with_parent_body_updates_collissions() {
296+
fn test_collider_move_with_parent_body_updates_collisions() {
297297
use na::{Isometry2, Rotation2, Translation2};
298298

299299
use crate::prelude::*;
@@ -314,7 +314,10 @@ mod tests {
314314

315315
for i in 1..3 {
316316
let next_position = Translation2::new(i as Real, 0.).vector;
317-
rigid_body_set.get_mut(body_handle).unwrap().set_translation(next_position, false);
317+
rigid_body_set
318+
.get_mut(body_handle)
319+
.unwrap()
320+
.set_translation(next_position, false);
318321

319322
collision_pipeline.step(
320323
integration_parameters.prediction_distance(),
@@ -332,8 +335,10 @@ mod tests {
332335
rigid_body_set.get(body_handle).unwrap().position(),
333336
"Collider should be at the same position as the parent body after {i} step"
334337
);
335-
assert_eq!(collider_set.get(collider_handle).unwrap().position(), &Isometry2::new(next_position, Rotation2::identity().angle()));
338+
assert_eq!(
339+
collider_set.get(collider_handle).unwrap().position(),
340+
&Isometry2::new(next_position, Rotation2::identity().angle())
341+
);
336342
}
337-
338343
}
339344
}

0 commit comments

Comments
 (0)