public class EmitterSphereShape extends java.lang.Object implements EmitterShape
Constructor and Description |
---|
EmitterSphereShape() |
EmitterSphereShape(Vector3f center,
float radius) |
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 |
getCenter() |
float |
getRadius() |
void |
getRandomPoint(Vector3f store)
This method fills in the initial position of the particle.
|
void |
getRandomPointAndNormal(Vector3f store,
Vector3f normal)
This method fills in the initial position of the particle and its normal vector.
|
java.lang.Object |
jmeClone()
Called internally by com.jme3.util.clone.Cloner.
|
void |
read(JmeImporter im) |
void |
setCenter(Vector3f center) |
void |
setRadius(float radius) |
void |
write(JmeExporter ex) |
public EmitterSphereShape()
public EmitterSphereShape(Vector3f center, float radius)
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)
EmitterShape
getRandomPointAndNormal
in interface EmitterShape
store
- store variable for initial positionnormal
- store variable for initial normalpublic Vector3f getCenter()
public void setCenter(Vector3f center)
public float getRadius()
public void setRadius(float radius)
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException