Accidently doubled the gravity ^^

This commit is contained in:
titison 2014-07-26 14:03:54 +02:00
parent 38ca1fd3f9
commit 4c51677a9d
1 changed files with 1 additions and 1 deletions

View File

@ -1135,7 +1135,7 @@ void UnitParticleSystem::initParticle(Particle *p, int particleIndex){
p->speedUpRelative= speedUpRelative;
p->accel= Vec3f(0.0f, -gravity, 0.0f);
p->accel.x = truncateDecimal<float>(p->accel.x,6);
p->accel.y = truncateDecimal<float>(p->accel.y-gravity,6);
p->accel.y = truncateDecimal<float>(p->accel.y,6);
p->accel.z = truncateDecimal<float>(p->accel.z,6);
// work out where we start for our shape (set speed and pos)