use std::f32::consts::PI; use bevy::{math::vec2, prelude::*}; use bevy_rapier2d::prelude::*; use component::*; use rand::Rng; use crate::{capacity, config::StkConfig, part, planet::PlanetType, proto_part_flags, proto_transform, ws::WsEvent, Packet, Part, Player}; pub mod thruster; pub mod component; pub mod save; pub fn module_spawn( mut commands: Commands, time: Res