public class EmitterPointShape extends java.lang.Object implements EmitterShape
Constructor and Description |
---|
EmitterPointShape() |
EmitterPointShape(Vector3f point) |
Modifier and Type | Method and Description |
---|---|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Called internally by com.jme3.util.clone.Cloner.
|
EmitterShape |
deepClone()
This method creates a deep clone of the current instance of the emitter shape.
|
Vector3f |
getPoint() |
void |
getRandomPoint(Vector3f store)
This method fills in the initial position of the particle.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills the point with data.
|
java.lang.Object |
jmeClone()
Called internally by com.jme3.util.clone.Cloner.
|
void |
read(JmeImporter im) |
void |
setPoint(Vector3f point) |
void |
write(JmeExporter ex) |
public EmitterPointShape()
public EmitterPointShape(Vector3f point)
public EmitterShape deepClone()
EmitterShape
deepClone
in interface EmitterShape
public java.lang.Object jmeClone()
jmeClone
in interface JmeCloneable
public void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields
in interface JmeCloneable
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.public void getRandomPoint(Vector3f store)
EmitterShape
getRandomPoint
in interface EmitterShape
store
- store variable for initial positionpublic void getRandomPointAndNormal(Vector3f store, Vector3f normal)
getRandomPointAndNormal
in interface EmitterShape
store
- the variable to store the point datanormal
- not used in this classpublic Vector3f getPoint()
public void setPoint(Vector3f point)
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException