Line Particles (quick question)

Hi all,

just a quick question, after using renanse particle editor I try to run some particle effects, and when I simply start with

ParticleMesh manager = ParticleFactory.buildParticles("spell", 500, ParticleMesh.PT_LINE);

but then I get the following error:

java.lang.IllegalArgumentException: particleType should be either ParticleGeometry.PT_TRIANGLE or ParticleGeometry.PT_QUAD

So either there's something really obvious that I'm missing, whether my jme installation has a problem. Before I start to install it again, would anyone give me his opinion about this?


Take a look at the source of ParticleFactory to see what the available factory methods are.

If you want to use Lines, you need to use buildLineParticles(name, amount) instead of buildParticles().

thanks, that's what I needed