summaryrefslogtreecommitdiffstats
path: root/src/solar_system/body.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/solar_system/body.rs')
-rw-r--r--src/solar_system/body.rs4
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)
{