aboutsummaryrefslogtreecommitdiff
path: root/src/dynamics/integration_parameters.rs
diff options
context:
space:
mode:
authorEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-01-22 13:38:59 +0100
committerEmil Ernerfeldt <emil.ernerfeldt@gmail.com>2021-01-22 13:38:59 +0100
commit315493ebfb06af9924fdabb8f26da4d1a9b095bc (patch)
tree93b9e80de2f8139e813d784271bcf0b659133981 /src/dynamics/integration_parameters.rs
parent581d13edbd5b23bdbe32c59f2bc35a164f4e86ff (diff)
downloadrapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.tar.gz
rapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.tar.bz2
rapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.zip
IntegrationParameters: deprectate dt() and inv_dt() methods
Diffstat (limited to 'src/dynamics/integration_parameters.rs')
-rw-r--r--src/dynamics/integration_parameters.rs2
1 files changed, 2 insertions, 0 deletions
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;