Closed RookieExaminer closed 6 years ago
new ParticleSystem(this, 100, R.drawable.star_pink, 3000) .setAcceleration(0.00013f, 90) .setSpeedByComponentsRange(0f, 0f, 0.05f, 0.1f) .setFadeOut(200, new AccelerateInterpolator()) .emitWithGravity(arg0, Gravity.TOP, 30);
How to make particles fly upward? Thank you
.setAcceleration(0.00013f, 270) or .setAccelerationModuleAndAndAngleRange(0.00013f, 0.00013f, 250,280)
new ParticleSystem(this, 100, R.drawable.star_pink, 3000) .setAcceleration(0.00013f, 90) .setSpeedByComponentsRange(0f, 0f, 0.05f, 0.1f) .setFadeOut(200, new AccelerateInterpolator()) .emitWithGravity(arg0, Gravity.TOP, 30);
How to make particles fly upward? Thank you