public class RadialParticleInfluencer extends DefaultParticleInfluencer
initialVelocity, SAVABLE_VERSION, temp, velocityVariation| Constructor and Description |
|---|
RadialParticleInfluencer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyVelocityVariation(Particle particle)
This method applies the variation to the particle with already set velocity.
|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Called internally by com.jme3.util.clone.Cloner.
|
Vector3f |
getOrigin()
the origin used for computing the radial velocity direction
|
float |
getRadialVelocity()
the radial velocity
|
boolean |
isHorizontal()
nullify y component of particle velocity to make the effect expand only on x and z axis
|
void |
read(JmeImporter im) |
void |
setHorizontal(boolean horizontal)
nullify y component of particle velocity to make the effect expand only on x and z axis
|
void |
setOrigin(Vector3f origin)
the origin used for computing the radial velocity direction
|
void |
setRadialVelocity(float radialVelocity)
the radial velocity
|
void |
write(JmeExporter ex) |
clone, getInitialVelocity, getVelocityVariation, influenceParticle, jmeClone, setInitialVelocity, setVelocityVariationprotected void applyVelocityVariation(Particle particle)
applyVelocityVariation in class DefaultParticleInfluencerparticle - the particle to be affectedpublic Vector3f getOrigin()
public void setOrigin(Vector3f origin)
origin - the desired origin location (alias created)public float getRadialVelocity()
public void setRadialVelocity(float radialVelocity)
radialVelocity - the desired speedpublic boolean isHorizontal()
public void setHorizontal(boolean horizontal)
horizontal - true to zero the Y component, false to preserve itpublic void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields in interface JmeCloneablecloneFields in class DefaultParticleInfluencercloner - 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 write(JmeExporter ex) throws java.io.IOException
write in interface Savablewrite in class DefaultParticleInfluencerjava.io.IOExceptionpublic void read(JmeImporter im) throws java.io.IOException
read in interface Savableread in class DefaultParticleInfluencerjava.io.IOException