Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Awesome library, need help with acceleration emitter. #94

Open
kylin17 opened this issue Mar 2, 2018 · 0 comments
Open

Awesome library, need help with acceleration emitter. #94

kylin17 opened this issue Mar 2, 2018 · 0 comments

Comments

@kylin17
Copy link

kylin17 commented Mar 2, 2018

I want my particles emitter emission from bottom to top direction, and I found example activity "Emit with Gravity" similarly, so I changed the code below to made it emission with 270 angle:

new ParticleSystem(this, 100, R.drawable.star_pink, 3000)
		.setAcceleration(0.00013f, 270)
		.setSpeedByComponentsRange(0f, 0f, 0.05f, 0.1f)
		.setFadeOut(200, new AccelerateInterpolator())
		.emitWithGravity(arg0, Gravity.TOP, 30);

But the result is the particles first little down then emission from bottom to top. How should I do to avoid that little down?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant