File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ pub fn setup_coliders_system(mut commands: Commands) {
13
13
commands
14
14
. spawn ( Collider :: cuboid ( 0.5 , 0.5 , 0.5 ) )
15
15
. insert ( TransformBundle :: from ( Transform :: from_xyz (
16
- x as f32 , y as f32 , z as f32 ,
16
+ x as f32 , y as f32 , z as f32 ,
17
17
) ) )
18
18
. insert ( collider_components:: MyCollider { key } ) ;
19
- }
19
+ }
20
20
}
21
21
}
22
22
}
@@ -78,11 +78,9 @@ mod tests {
78
78
79
79
app. update ( ) ;
80
80
81
- let mut colliders_query = app. world . query :: < & collider_components:: MyCollider > ( ) ;
82
- let colliders_count = colliders_query. iter ( & app. world ) . count ( ) ;
81
+ let mut colliders_query = app. world . query :: < & collider_components:: MyCollider > ( ) ;
82
+ let colliders_count = colliders_query. iter ( & app. world ) . count ( ) ;
83
83
84
84
assert_eq ! ( colliders_count, 3 * 3 * 3 ) ;
85
-
86
85
}
87
86
}
88
-
Original file line number Diff line number Diff line change @@ -143,9 +143,8 @@ fn spawn_chunk(
143
143
144
144
#[ cfg( test) ]
145
145
mod tests {
146
- use super :: * ;
147
- use bevy:: asset:: AssetPlugin ;
148
-
146
+ // use super::*;
147
+ // use bevy::asset::AssetPlugin;
149
148
// fn setup_app() -> App {
150
149
// let mut app = App::new();
151
150
// app.add_plugins(MinimalPlugins)
You can’t perform that action at this time.
0 commit comments