use std::f32::consts::PI; use bevy::prelude::*; use heron::prelude::*; use rand::prelude::*; use crate::{ input::{InputState, Key, Source as InputSource}, map::GroundContact, off_map::CanFallOffMap, projectile::{EGG_RADIUS, Projectile}, Layer, }; #[derive(Component)] pub struct Player { input_source: InputSource, rotation: f32, last_shot: Option