aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
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/pipeline
parent581d13edbd5b23bdbe32c59f2bc35a164f4e86ff (diff)
downloadrapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.tar.gz
rapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.tar.bz2
rapier-315493ebfb06af9924fdabb8f26da4d1a9b095bc.zip
IntegrationParameters: deprectate dt() and inv_dt() methods
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/physics_pipeline.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs
index dc4b69f..e970125 100644
--- a/src/pipeline/physics_pipeline.rs
+++ b/src/pipeline/physics_pipeline.rs
@@ -160,7 +160,7 @@ impl PhysicsPipeline {
self.counters.stages.update_time.start();
bodies.foreach_active_dynamic_body_mut_internal(|_, b| {
b.update_world_mass_properties();
- b.integrate_accelerations(integration_parameters.dt(), *gravity)
+ b.integrate_accelerations(integration_parameters.dt, *gravity)
});
self.counters.stages.update_time.pause();
@@ -239,7 +239,7 @@ impl PhysicsPipeline {
rb.linvel = na::zero();
rb.angvel = na::zero();
} else {
- rb.update_predicted_position(integration_parameters.dt());
+ rb.update_predicted_position(integration_parameters.dt);
}
rb.update_colliders_positions(colliders);