public interface ParticleInfluencer extends Savable, java.lang.Cloneable, JmeCloneable
Modifier and Type | Method and Description |
---|---|
ParticleInfluencer |
clone()
This method clones the influencer instance.
|
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.
|
void |
setInitialVelocity(Vector3f initialVelocity) |
void |
setVelocityVariation(float variation) |
cloneFields, jmeClone
void influenceParticle(Particle particle, EmitterShape emitterShape)
particle
- particle to be influencedemitterShape
- the shape of its emitterParticleInfluencer clone()
void setInitialVelocity(Vector3f initialVelocity)
initialVelocity
- 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.Vector3f getInitialVelocity()
void setVelocityVariation(float variation)
variation
- 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.float getVelocityVariation()