plattysoft / Leonids

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/
Apache License 2.0
2.28k stars 398 forks source link

Particle.update() has bug in position calculation #68

Open smr99 opened 7 years ago

smr99 commented 7 years ago

If I understand the code correctly, update() is missing a factor of 1/2 in calculating the position: x(t) = x0 + vt + 0.5 a t t. You seem to be missing the factor 0.5.

BTW: the library is very easy to use and understand!