From 2dfbd9ae92c139e306afc87994adac82489f30eb Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Fri, 30 Apr 2021 11:37:58 +0200 Subject: Add comments. --- src/pipeline/physics_pipeline.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/pipeline') diff --git a/src/pipeline/physics_pipeline.rs b/src/pipeline/physics_pipeline.rs index a5196ba..2f2a95d 100644 --- a/src/pipeline/physics_pipeline.rs +++ b/src/pipeline/physics_pipeline.rs @@ -271,7 +271,7 @@ impl PhysicsPipeline { }) .unwrap(); bodies.map_mut_internal(handle.0, |forces: &mut RigidBodyForces| { - forces.add_linear_acceleration(&gravity, effective_inv_mass) + forces.add_gravity_acceleration(&gravity, effective_inv_mass) }); } self.counters.stages.update_time.pause(); @@ -442,6 +442,10 @@ impl PhysicsPipeline { } } + /// Executes one timestep of the physics simulation. + /// + /// This is the same as `self.step_generic`, except that it is specialized + /// to work with `RigidBodySet` and `ColliderSet`. #[cfg(feature = "default-sets")] pub fn step( &mut self, -- cgit