summaryrefslogtreecommitdiffstats
path: root/src/solar_system/ship.rs
diff options
context:
space:
mode:
authorJon Santmyer <jon@jonsantmyer.com>2026-05-07 08:50:05 -0400
committerJon Santmyer <jon@jonsantmyer.com>2026-05-07 08:50:05 -0400
commitc1adf64c1aaecd5a2b9d532d707ef35971f1aa18 (patch)
treefc1050becd0576d75a8d6afb8be09fae80c91541 /src/solar_system/ship.rs
parent9788d9037ad7199701b1710c28559cb96bce5aec (diff)
downloadsystemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.gz
systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.bz2
systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.zip
begin work on body info window
Diffstat (limited to 'src/solar_system/ship.rs')
-rw-r--r--src/solar_system/ship.rs36
1 files changed, 0 insertions, 36 deletions
diff --git a/src/solar_system/ship.rs b/src/solar_system/ship.rs
deleted file mode 100644
index 57c0184..0000000
--- a/src/solar_system/ship.rs
+++ /dev/null
@@ -1,36 +0,0 @@
-use crate::solar_system::{Kilograms, Kilometers, SolarSystem, body::BodyId, orbit::StaticOrbit};
-
-pub type ShipId = usize;
-
-pub struct Ship
-{
- name: String,
- mass: Kilograms,
-
- position: cgmath::Vector3<Kilometers>,
- velocity: cgmath::Vector3<f32>,
- acceleration: cgmath::Vector3<f32>,
-
- baked_orbit: Option<StaticOrbit>
-}
-
-impl Ship
-{
- pub fn new(
- name: String,
- mass: Kilograms,
- system: &SolarSystem,
- orbiting: BodyId,
- orbit_sma: Kilometers)
- -> Self
- {
- Self {
- name,
- mass,
- position: cgmath::vec3(0.0, 0.0, 0.0),
- velocity: cgmath::vec3(0.0, 0.0, 0.0),
- acceleration: cgmath::vec3(0.0, 0.0, 0.0),
- baked_orbit: None
- }
- }
-}