From 315493ebfb06af9924fdabb8f26da4d1a9b095bc Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Fri, 22 Jan 2021 13:38:59 +0100 Subject: IntegrationParameters: deprectate dt() and inv_dt() methods --- src/dynamics/integration_parameters.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dynamics/integration_parameters.rs') diff --git a/src/dynamics/integration_parameters.rs b/src/dynamics/integration_parameters.rs index eac8676..56b5801 100644 --- a/src/dynamics/integration_parameters.rs +++ b/src/dynamics/integration_parameters.rs @@ -139,6 +139,7 @@ impl IntegrationParameters { /// The current time-stepping length. #[inline(always)] + #[deprecated = "You can just read the `IntegrationParams::dt` value directly"] pub fn dt(&self) -> f32 { self.dt } @@ -157,6 +158,7 @@ impl IntegrationParameters { /// Sets the time-stepping length. #[inline] + #[deprecated = "You can just set the `IntegrationParams::dt` value directly"] pub fn set_dt(&mut self, dt: f32) { assert!(dt >= 0.0, "The time-stepping length cannot be negative."); self.dt = dt; -- cgit