public class EmptyParticleInfluencer extends java.lang.Object implements ParticleInfluencer
| Constructor and Description |
|---|
EmptyParticleInfluencer() |
| Modifier and Type | Method and Description |
|---|---|
ParticleInfluencer |
clone()
This method clones the influencer instance.
|
void |
cloneFields(Cloner cloner,
java.lang.Object original)
Called internally by com.jme3.util.clone.Cloner.
|
Vector3f |
getInitialVelocity()
This method returns the initial velocity.
|
float |
getVelocityVariation()
This method returns the velocity variation.
|
void |
influenceParticle(Particle particle,
EmitterShape emitterShape)
This method influences the particle.
|
java.lang.Object |
jmeClone()
Called internally by com.jme3.util.clone.Cloner.
|
void |
read(JmeImporter im) |
void |
setInitialVelocity(Vector3f initialVelocity) |
void |
setVelocityVariation(float variation) |
void |
write(JmeExporter ex) |
public void write(JmeExporter ex) throws java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
public void influenceParticle(Particle particle, EmitterShape emitterShape)
ParticleInfluencerinfluenceParticle in interface ParticleInfluencerparticle - particle to be influencedemitterShape - the shape of it emitterpublic void setInitialVelocity(Vector3f initialVelocity)
setInitialVelocity in interface ParticleInfluencerinitialVelocity - Set the initial velocity a particle is spawned with,
the initial velocity given in the parameter will be varied according
to the velocity variation set in ParticleEmitter.setVelocityVariation(float).
The particle will move with this velocity unless it is affected by
gravity.public Vector3f getInitialVelocity()
ParticleInfluencergetInitialVelocity in interface ParticleInfluencerpublic void setVelocityVariation(float variation)
setVelocityVariation in interface ParticleInfluencervariation - Set the variation by which the initial velocity
of the particle is determined. variation should be a value
from 0 to 1, where 0 means particles are to spawn with exactly
the velocity given in ParticleEmitter.setInitialVelocity(com.jme3.math.Vector3f),
and 1 means particles are to spawn with a completely random velocity.public float getVelocityVariation()
ParticleInfluencergetVelocityVariation in interface ParticleInfluencerpublic ParticleInfluencer clone()
ParticleInfluencerclone in interface ParticleInfluencerclone in class java.lang.Objectpublic java.lang.Object jmeClone()
jmeClone in interface JmeCloneablepublic void cloneFields(Cloner cloner, java.lang.Object original)
cloneFields in interface JmeCloneablecloner - 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.