venuss 0.0.2

Venus celestial simulation crate for the MilkyWay SolarSystem workspace
Documentation
pub struct TimeScale {
    pub speed_multiplier: f64,
    pub paused: bool,
}
impl Default for TimeScale {
    fn default() -> Self {
        Self::new()
    }
}
impl TimeScale {
    pub fn new() -> Self {
        Self {
            speed_multiplier: 3600.0,
            paused: false,
        }
    }
    pub fn simulation_dt(&self, real_dt_s: f64) -> f64 {
        if self.paused {
            0.0
        } else {
            real_dt_s * self.speed_multiplier
        }
    }
}