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

How do I set the direction I want the particles to emit from? #72

Closed mikemilla closed 7 years ago

mikemilla commented 7 years ago

I want to change the direction the particles emit from. They only seem to emit in the right direction. How can I change it to emit up or left or to the bottom left, etc?

mikemilla commented 7 years ago

Setting this will change it to go from bottom to top mParticles.setSpeedModuleAndAngleRange(minSpeed, maxSpeed, 270, 270);

I'm not really a fan of the naming of the methods throughout the library, but overall it's pretty good.