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, setVelocityVariation
protected void applyVelocityVariation(Particle particle)
applyVelocityVariation
in class DefaultParticleInfluencer
particle
- the particle to be affectedpublic Vector3f getOrigin()
public void setOrigin(Vector3f origin)
origin
- public float getRadialVelocity()
public void setRadialVelocity(float radialVelocity)
radialVelocity
- public boolean isHorizontal()
public void setHorizontal(boolean horizontal)
horizontal
- public void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields
in interface JmeCloneable
cloneFields
in class DefaultParticleInfluencer
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 merely clone what it wants.public void write(JmeExporter ex) throws java.io.IOException
write
in interface Savable
write
in class DefaultParticleInfluencer
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
read
in interface Savable
read
in class DefaultParticleInfluencer
java.io.IOException