public class NewtonianParticleInfluencer extends DefaultParticleInfluencer
| Modifier and Type | Field and Description |
|---|---|
protected float |
normalVelocity
Normal to emitter's shape factor.
|
protected float |
surfaceTangentFactor
Emitter's surface tangent factor.
|
protected float |
surfaceTangentRotation
Emitters tangent rotation factor.
|
initialVelocity, SAVABLE_VERSION, temp, velocityVariation| Constructor and Description |
|---|
NewtonianParticleInfluencer()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyVelocityVariation(Particle particle)
This method applies the variation to the particle with already set velocity.
|
ParticleInfluencer |
clone()
This method clones the influencer instance.
|
float |
getNormalVelocity()
This method returns the normal velocity factor.
|
float |
getSurfaceTangentFactor()
This method returns the surface tangent factor.
|
float |
getSurfaceTangentRotation()
This method returns the surface tangent rotation factor.
|
void |
influenceParticle(Particle particle,
EmitterShape emitterShape)
This method influences the particle.
|
void |
read(JmeImporter im) |
void |
setNormalVelocity(float normalVelocity)
This method sets the normal velocity factor.
|
void |
setSurfaceTangentFactor(float surfaceTangentFactor)
This method sets the surface tangent factor.
|
void |
setSurfaceTangentRotation(float surfaceTangentRotation)
This method sets the surface tangent rotation factor.
|
void |
write(JmeExporter ex) |
cloneFields, getInitialVelocity, getVelocityVariation, jmeClone, setInitialVelocity, setVelocityVariationprotected float normalVelocity
protected float surfaceTangentFactor
protected float surfaceTangentRotation
public NewtonianParticleInfluencer()
public void influenceParticle(Particle particle, EmitterShape emitterShape)
ParticleInfluencerinfluenceParticle in interface ParticleInfluencerinfluenceParticle in class DefaultParticleInfluencerparticle - particle to be influencedemitterShape - the shape of it emitterpublic float getNormalVelocity()
public void setNormalVelocity(float normalVelocity)
normalVelocity - the normal velocity factorpublic void setSurfaceTangentFactor(float surfaceTangentFactor)
surfaceTangentFactor - the surface tangent factorpublic float getSurfaceTangentFactor()
public void setSurfaceTangentRotation(float surfaceTangentRotation)
surfaceTangentRotation - the surface tangent rotation factorpublic float getSurfaceTangentRotation()
protected void applyVelocityVariation(Particle particle)
DefaultParticleInfluencerapplyVelocityVariation in class DefaultParticleInfluencerparticle - the particle to be affectedpublic ParticleInfluencer clone()
ParticleInfluencerclone in interface ParticleInfluencerclone in class DefaultParticleInfluencerpublic 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