From ad238a5b3c49ec8e12463a43db9b3a726d1a7657 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sat, 17 Aug 2024 13:44:22 +0200 Subject: chore: create camera entity with position component --- src/main.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 81d9b6c..a93efa1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -89,7 +89,12 @@ fn main() -> Result<(), Box> MaterialFlags::builder().use_ambient_color(true).build(), )); - engine.spawn((Camera { current: true, ..Default::default() },)); + engine.spawn(( + Camera { current: true, ..Default::default() }, + Position { + position: Vec3 { x: 0.0, y: 0.0, z: 3.0 }, + }, + )); engine.add_sole(GlobalLight::default())?; -- cgit v1.2.3-18-g5258