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, player::component::Player, proto_part_flags, proto_transform, ws::WsEvent, Packet, Part, }; pub mod component; pub mod save; pub mod thruster; // half size of hearty pub static PART_HALF_SIZE: f32 = 25.0; pub fn module_spawn( mut commands: Commands, time: Res