Class EmitterPointShape

java.lang.Object
com.jme3.effect.shapes.EmitterPointShape
All Implemented Interfaces:
EmitterShape, Savable, JmeCloneable, Cloneable

public class EmitterPointShape extends Object implements EmitterShape
An EmitterShape that emits particles from a single point in space.
  • Constructor Details

    • EmitterPointShape

      public EmitterPointShape()
      For serialization only. Do not use.
    • EmitterPointShape

      public EmitterPointShape(Vector3f point)
      Constructs an EmitterPointShape with the given point.
      Parameters:
      point - The point from which particles are emitted.
  • Method Details

    • deepClone

      public EmitterShape deepClone()
      Description copied from interface: EmitterShape
      This method creates a deep clone of the current instance of the emitter shape.
      Specified by:
      deepClone in interface EmitterShape
      Returns:
      deep clone of the current instance of the emitter shape
    • jmeClone

      public Object jmeClone()
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      jmeClone in interface JmeCloneable
      Returns:
      a new instance
    • cloneFields

      public void cloneFields(Cloner cloner, Object original)
      Called internally by com.jme3.util.clone.Cloner. Do not call directly.
      Specified by:
      cloneFields in interface JmeCloneable
      Parameters:
      cloner - The cloner that is performing the cloning operation. The cloneFields method can call back into the cloner to make clones of its subordinate fields.
      original - The original object from which this object was cloned. This is provided for the very rare case that this object needs to refer to its original for some reason. In general, all of the relevant values should have been transferred during the shallow clone, and this object need only clone what it wants.
    • getRandomPoint

      public void getRandomPoint(Vector3f store)
      For a point shape, the generated point is always the shape's defined point.
      Specified by:
      getRandomPoint in interface EmitterShape
      Parameters:
      store - The Vector3f to store the generated point in.
    • getRandomPointAndNormal

      public void getRandomPointAndNormal(Vector3f store, Vector3f normal)
      For a point shape, the generated point is always the shape's defined point. The normal is not defined for a point shape, so this method does not modify the normal parameter.
      Specified by:
      getRandomPointAndNormal in interface EmitterShape
      Parameters:
      store - The Vector3f to store the generated point in.
      normal - The Vector3f to store the generated normal in (unused).
    • getPoint

      public Vector3f getPoint()
      Returns the point from which particles are emitted.
      Returns:
      The point.
    • setPoint

      public void setPoint(Vector3f point)
      Sets the point from which particles are emitted.
      Parameters:
      point - The new point.
    • write

      public void write(JmeExporter ex) throws IOException
      Specified by:
      write in interface Savable
      Throws:
      IOException
    • read

      public void read(JmeImporter im) throws IOException
      Specified by:
      read in interface Savable
      Throws:
      IOException