aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/particlebody.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/particlebody.cpp b/src/particlebody.cpp
index 7435737c..748f80cd 100644
--- a/src/particlebody.cpp
+++ b/src/particlebody.cpp
@@ -40,7 +40,7 @@ void ParticleBody::update()
Vector2d avg_acceleration=(acceleration_+last_acceleration)/2.0;
// update the velocity of the body
- velocity_=avg_acceleration*time_step;
+ velocity_+=avg_acceleration*time_step;
}
} // yage