use bevy::prelude::*; #[derive(Component, Deref, DerefMut, Debug, Default)] pub struct Velocity(pub Vec2); #[derive(Component, Deref, DerefMut, Debug, Default)] pub struct Heading(pub Vec2); #[derive(Component, Deref, DerefMut, Debug, Default)] pub struct Speed(pub f32); #[derive(Component, Deref, DerefMut, Debug, Default)] pub struct Height(pub f32); #[derive(Component, Debug, Default)] pub struct YSortable; pub fn resolve_velocity(mut query: Query<(&Velocity, &mut Transform)>, time: Res