diff options
| author | Sébastien Crozet <developer@crozet.re> | 2021-02-11 10:17:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-11 10:17:58 +0100 |
| commit | 3be866920657f7a13a49486795e06f14d92f4969 (patch) | |
| tree | 38ef407aca8effc6d02dba970e18ae4d9080260b /src/pipeline | |
| parent | 244afd529b4d91204c9825def00a69f233165224 (diff) | |
| parent | e870acf011d7d99f7d8f4fa98126f8cb985bd823 (diff) | |
| download | rapier-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.rs | 2 |
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(); |
