How should the Influencer in particlemonkey be used?
I didn’t find a particlemonkey example
I wonder how Trail Influencer is used
1 Like
So I recently moved the examples out of particle monkey, but they are in the git history if you want to take a look. Most of the information about the trail influencer is included in the documentation.
Basically, the trail influencer adds another mesh to the particle system. Over time it will create new edges which will create new polygons that trail after the particle. The most basic usage is probably:
TrailInfluencer ti = new TrailInfluencer();
Material mat = new Material(assetManager, "Common/MatDefs/Misc/Particle.j3md");
mat.getAdditionalRenderState().setFaceCullMode(RenderState.FaceCullMode.Off);
Texture tex = assetManager.loadTexture("Effects/Particles/part_beam.png");
mat.setTexture("Texture", tex);
ti.setTrailmat(mat);
emitter.addInfluencer(ti);
3 Likes
Thank you for your reply
1 Like