Getty Ritter преди 9 месеца
родител
ревизия
782fd6be3b
променени са 1 файла, в които са добавени 6 реда и са изтрити 7 реда
  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()
+            });
         }
     }
 }