From 5961b984f83a90992b4a9b9011f9ea353836b17c Mon Sep 17 00:00:00 2001 From: Hartmut Seichter Date: Wed, 16 Nov 2022 23:10:13 +0100 Subject: [PATCH] non-working version migrating to bevy 0.9 --- src/offaxis.rs | 20 ++++++++++---------- src/scene.rs | 6 +++--- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/offaxis.rs b/src/offaxis.rs index 0358da0..62295ac 100644 --- a/src/offaxis.rs +++ b/src/offaxis.rs @@ -73,16 +73,16 @@ pub fn camera_setup(mut commands: Commands) { print!("Setup {0}",line!()); - commands.spawn_bundle(( - camera, - projection, - frustum, - VisibleEntities::default(), - transform, - GlobalTransform::default(), - // Camera2d, - ) - ); + // commands.spawn_bundle(( + // camera, + // projection, + // frustum, + // VisibleEntities::default(), + // transform, + // GlobalTransform::default(), + // // Camera2d, + // ) + // ); print!("Setup {0}",line!()); diff --git a/src/scene.rs b/src/scene.rs index 2fa9849..e6db6c7 100644 --- a/src/scene.rs +++ b/src/scene.rs @@ -17,9 +17,9 @@ pub struct Position { x: f32, y: f32 } pub fn build_scene(mut commands: Commands) { - commands.spawn() - .insert(Person) - .insert(Position { x: 10.0, y: 10.0 } ); + // commands.spawn() + // .insert(Person) + // .insert(Position { x: 10.0, y: 10.0 } ); // camera // commands.spawn_bundle(OffAxisProjection {