Getty Ritter 2 months ago
parent
commit
782fd6be3b
1 changed files with 6 additions and 7 deletions
  1. 6 7
      src/main.rs

+ 6 - 7
src/main.rs

@@ -41,13 +41,12 @@ fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
                 2 => 1.0,
                 _ => 1.5,
             } * std::f32::consts::PI;
-            commands.spawn(
-                SceneBundle {
-                    scene: asset_server.load("test-cube.glb#Scene0"),
-                    transform: Transform::from_xyz((x * 2) as f32, z, (y * 2) as f32).with_rotation(Quat::from_rotation_y(rotation)),
-                    ..default()
-                }
-            );
+            commands.spawn(SceneBundle {
+                scene: asset_server.load("test-cube.glb#Scene0"),
+                transform: Transform::from_xyz((x * 2) as f32, z, (y * 2) as f32)
+                    .with_rotation(Quat::from_rotation_y(rotation)),
+                ..default()
+            });
         }
     }
 }