Commit ecfc3032 authored by Viktor Lidholt's avatar Viktor Lidholt

Correctly calculates gravity in particle systems

parent ccf08e98
......@@ -252,7 +252,7 @@ class ParticleSystem extends Node {
particle.dir += accel;
} else if (gravity[0] != 0.0 || gravity[1] != 0) {
// gravity
Vector2 accel = gravity.scale(dt);
Vector2 accel = new Vector2.copy(gravity).scale(dt);
particle.dir += accel;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment