fence material

This commit is contained in:
2025-02-27 23:51:46 +01:00
parent 13824c1445
commit 88f787d41e
4 changed files with 276 additions and 9 deletions

View File

@@ -119,11 +119,11 @@ fn spawn_box(
if keys.just_pressed(KeyCode::Enter) {
commands.spawn((
RigidBody::Dynamic,
Collider::cuboid(1.0, 1.0, 1.0),
Collider::cuboid(5.0, 5.0, 5.0),
AngularVelocity(Vec3::new(2.5, 3.5, 1.5)),
Mesh3d(meshes.add(Cuboid::from_length(1.0))),
Mesh3d(meshes.add(Cuboid::from_length(5.0))),
MeshMaterial3d(materials.add(Color::srgb_u8(124, 144, 255))),
Transform::from_xyz(0.0, 4.0, 0.0),
Transform::from_xyz(0.0, 50.0, 0.0),
));
}
}