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.
|
NewtonianParticleInfluencer |
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, setVelocityVariation
protected float normalVelocity
protected float surfaceTangentFactor
protected float surfaceTangentRotation
public NewtonianParticleInfluencer()
public void influenceParticle(Particle particle, EmitterShape emitterShape)
ParticleInfluencer
influenceParticle
in interface ParticleInfluencer
influenceParticle
in class DefaultParticleInfluencer
particle
- 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)
DefaultParticleInfluencer
applyVelocityVariation
in class DefaultParticleInfluencer
particle
- the particle to be affectedpublic NewtonianParticleInfluencer clone()
ParticleInfluencer
clone
in interface ParticleInfluencer
clone
in class DefaultParticleInfluencer
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