From 57e5241abfbd8175c31c3dfee2a20a94b795f547 Mon Sep 17 00:00:00 2001 From: hut Date: Sat, 16 Mar 2024 23:37:48 +0100 Subject: [PATCH] add plane below the player --- src/world.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/world.rs b/src/world.rs index b6edc4f..d35166d 100644 --- a/src/world.rs +++ b/src/world.rs @@ -58,6 +58,13 @@ pub fn setup( ..default() }); + commands.spawn(PbrBundle { + mesh: meshes.add(Plane3d::default().mesh().size(20.0, 20.0)), + transform: Transform::from_xyz(0.0, -20.0, 0.0), + material: white_handle, + ..default() + }); + // Space is DARK ambient_light.brightness = 0.0;