From d607da77664631f622143aa73622a7fc2c555ff4 Mon Sep 17 00:00:00 2001 From: hut Date: Sun, 17 Mar 2024 01:25:51 +0100 Subject: [PATCH] add alien floating in space --- src/world.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/world.rs b/src/world.rs index 931619a..2df88dd 100644 --- a/src/world.rs +++ b/src/world.rs @@ -77,6 +77,21 @@ pub fn setup( ..default() }); + // Add alien + commands.spawn(SceneBundle { + transform: Transform { + translation: Vec3::new( + 0.0, + 0.0, + 100.0, + ), + rotation: Quat::from_rotation_y(-PI / 3.), + scale: Vec3::splat(5.0), + }, + scene: asset_server.load("restricted/alien.glb#Scene0"), + ..default() + }); + // Space is DARK ambient_light.brightness = 0.0;