DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

9bd1c06d7f0f13992e8df7c7f91f69ea80cf37d0 — Jonni Liljamo 1 year, 7 months ago 903e754
feat(client): PlayerCamera component, position it
1 files changed, 12 insertions(+), 2 deletions(-)

M client/src/main.rs
M client/src/main.rs => client/src/main.rs +12 -2
@@ 77,9 77,19 @@ fn main() {
    info!("goodbye");
}

#[derive(Component)]
struct PlayerCamera;

fn setup(mut commands: Commands) {
    let camera_bundle = Camera3dBundle::default();
    commands.spawn(camera_bundle);
    commands.spawn(Camera3dBundle {
        transform: Transform {
            translation: Vec3::new(0.0, -1.5, 8.0),
            rotation: Quat::from_rotation_x(0.2),
            ..Default::default()
        },
        ..Default::default()
    })
    .insert(PlayerCamera);
}

fn editor_controls() -> bevy_editor_pls::controls::EditorControls {