|
@@ -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()
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
}
|