fence material
This commit is contained in:
@@ -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),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user