File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments