update glbs again

This commit is contained in:
AmadeusWM committed 2025-04-06 00:21:33 +02:00
1 parent 3f2eb3e432
commit 532aaaf38e
9 files changed
+6455 -10

No files matched your search

Generated
+6436
View File
File diff suppressed because it is too large. Load diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+19 -10
View File
@@ -18,19 +18,28 @@ fn spawn_level(
let gltf = models.get(handle).expect(&format!("No model for {}", mesh_name));
let asset = gltf.default_scene.as_ref().expect(&format!("No scene in {}", mesh_name));
SceneRoot(asset.clone());
SceneRoot(asset.clone())
});
let [corner_inside, corner_outside, wall, door, round_door, round_hole] = shapes;
let [
corner_inside,
corner_outside,
wall,
door,
round_door,
round_hole
] = shapes;
let mut x_offset = 0.0;
for i in 0..10 {
commands.spawn(wall.clone())
.insert(TransformBundle::from_transform(Transform::from_xyz(x_offset + (i as f32 * 2.0), 0.0, 0.0)));
commands.spawn((
wall.clone(),
Transform::from_xyz(i as f32 * 2.0, 0.0, 0.0),
));
commands.spawn(wall.clone())
.insert(TransformBundle::from_transform(
Transform::from_xyz(x_offset + (i as f32 * 2.0), 0.0, 0.0)
.with_rotation(Quat::from_rotation_y(std::f32::consts::PI))
));
commands.spawn((
wall.clone(),
Transform::from_xyz(i as f32 * 2.0, 0.0, 0.0)
.with_rotation(Quat::from_rotation_y(std::f32::consts::PI)),
));
x_offset += 2.0;
}
x_offset += 2.0;
}