Package com.jme3.effect.influencers
Interface ParticleInfluencer
- All Superinterfaces:
- Cloneable,- JmeCloneable,- Savable
- All Known Implementing Classes:
- DefaultParticleInfluencer,- EmptyParticleInfluencer,- NewtonianParticleInfluencer,- RadialParticleInfluencer
An interface that defines the methods to affect initial velocity of the particles.
- 
Method SummaryModifier and TypeMethodDescriptionclone()This method clones the influencer instance.This method returns the initial velocity.floatThis method returns the velocity variation.voidinfluenceParticle(Particle particle, EmitterShape emitterShape) This method influences the particle.voidsetInitialVelocity(Vector3f initialVelocity) voidsetVelocityVariation(float variation) Methods inherited from interface com.jme3.util.clone.JmeCloneablecloneFields, jmeClone
- 
Method Details- 
influenceParticleThis method influences the particle.- Parameters:
- particle- particle to be influenced
- emitterShape- the shape of its emitter
 
- 
cloneParticleInfluencer clone()This method clones the influencer instance.- Returns:
- cloned instance
 
- 
setInitialVelocity- Parameters:
- 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.
 
- 
getInitialVelocityVector3f getInitialVelocity()This method returns the initial velocity.- Returns:
- the initial velocity
 
- 
setVelocityVariationvoid setVelocityVariation(float variation) - Parameters:
- variation- Set the variation by which the initial velocity of the particle is determined.- variationshould 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.
 
- 
getVelocityVariationfloat getVelocityVariation()This method returns the velocity variation.- Returns:
- the velocity variation
 
 
-