aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-07-23 14:30:30 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-07-23 14:30:30 +0100
commit21ba55df6e75a5c03b4ecbb790fa1174d1de10fd (patch)
tree2f4dd3263ea6bf560bcc745ede4ef546d5d6a555
parentdaa9dc84d7fb6e7c8f84b1ee3adfaacaad7de72f (diff)
downloadYAGE-21ba55df6e75a5c03b4ecbb790fa1174d1de10fd.tar.gz
YAGE-21ba55df6e75a5c03b4ecbb790fa1174d1de10fd.zip
Fixed small type, gravity is working again and all is good
-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