java.lang.Object
com.ardor3d.extension.effect.particle.emitter.SavableParticleEmitter
com.ardor3d.extension.effect.particle.emitter.MeshEmitter
All Implemented Interfaces:
ParticleEmitter, Savable

public class MeshEmitter extends SavableParticleEmitter
  • Constructor Details

    • MeshEmitter

      public MeshEmitter()
    • MeshEmitter

      public MeshEmitter(Mesh source, boolean onlyVertices)
      Parameters:
      source - the mesh to use as our source
      onlyVertices - if true, only the vertices of the emitter should be used for spawning particles. Otherwise, the mesh's face surfaces should be used.
  • Method Details

    • setSource

      public void setSource(Mesh source)
    • getSource

      public Mesh getSource()
    • setOnlyVertices

      public void setOnlyVertices(boolean onlyVertices)
    • isOnlyVertices

      public boolean isOnlyVertices()
    • randomEmissionPoint

      public Vector3 randomEmissionPoint(Vector3 store)
      Description copied from interface: ParticleEmitter
      Get the next point from this emitter.
      Parameters:
      store - the vector to store our point in. If null, a new one is created.
      Returns:
      the vector we stored in
    • read

      public void read(InputCapsule capsule) throws IOException
      Throws:
      IOException
    • write

      public void write(OutputCapsule capsule) throws IOException
      Throws:
      IOException