diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-07 08:50:05 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-05-07 08:50:05 -0400 |
| commit | c1adf64c1aaecd5a2b9d532d707ef35971f1aa18 (patch) | |
| tree | fc1050becd0576d75a8d6afb8be09fae80c91541 /src/solar_system/body.rs | |
| parent | 9788d9037ad7199701b1710c28559cb96bce5aec (diff) | |
| download | systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.gz systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.tar.bz2 systemic4x-c1adf64c1aaecd5a2b9d532d707ef35971f1aa18.zip | |
begin work on body info window
Diffstat (limited to 'src/solar_system/body.rs')
| -rw-r--r-- | src/solar_system/body.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/solar_system/body.rs b/src/solar_system/body.rs index 55d3d4a..7618a95 100644 --- a/src/solar_system/body.rs +++ b/src/solar_system/body.rs @@ -81,12 +81,12 @@ impl OrbitalBody -> cgmath::Vector3<Kilometers> { match &self.orbit { - Some(orbit) => orbit.calculate_position_at(self, time), + Some(orbit) => orbit.calculate_position_at(self.sgp(), time), None => cgmath::vec3(0.0, 0.0, 0.0) } } - pub fn update( + pub fn tick( &mut self, time: Second) { |
