aboutsummaryrefslogtreecommitdiff
path: root/src/pipeline
diff options
context:
space:
mode:
authorSébastien Crozet <developer@crozet.re>2021-02-11 10:17:58 +0100
committerGitHub <noreply@github.com>2021-02-11 10:17:58 +0100
commit3be866920657f7a13a49486795e06f14d92f4969 (patch)
tree38ef407aca8effc6d02dba970e18ae4d9080260b /src/pipeline
parent244afd529b4d91204c9825def00a69f233165224 (diff)
parente870acf011d7d99f7d8f4fa98126f8cb985bd823 (diff)
downloadrapier-3be866920657f7a13a49486795e06f14d92f4969.tar.gz
rapier-3be866920657f7a13a49486795e06f14d92f4969.tar.bz2
rapier-3be866920657f7a13a49486795e06f14d92f4969.zip
Merge pull request #102 from EmbarkStudios/apply-forces-in-velocity-solver
Apply accelerations during velocity solver
Diffstat (limited to 'src/pipeline')
-rw-r--r--src/pipeline/physics_pipeline.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs
index 80d7833..293fa9d 100644
--- a/src/pipeline/physics_pipeline.rs
+++ b/src/pipeline/physics_pipeline.rs
@@ -154,7 +154,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.add_gravity(*gravity)
});
self.counters.stages.update_time.pause();