|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.effect.influencers.DefaultParticleInfluencer
com.jme3.effect.influencers.NewtonianParticleInfluencer
public class NewtonianParticleInfluencer
This influencer calculates initial velocity with the use of the emitter's shape.
Field Summary | |
---|---|
protected float |
normalVelocity
Normal to emitter's shape factor. |
protected float |
surfaceTangentFactor
Emitter's surface tangent factor. |
protected float |
surfaceTangentRotation
Emitters tangent rotation factor. |
Fields inherited from class com.jme3.effect.influencers.DefaultParticleInfluencer |
---|
startVelocity, temp, velocityVariation |
Constructor Summary | |
---|---|
NewtonianParticleInfluencer()
Constructor. |
Method Summary | |
---|---|
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)
|
Methods inherited from class com.jme3.effect.influencers.DefaultParticleInfluencer |
---|
getInitialVelocity, getVelocityVariation, setInitialVelocity, setVelocityVariation |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected float normalVelocity
protected float surfaceTangentFactor
protected float surfaceTangentRotation
Constructor Detail |
---|
public NewtonianParticleInfluencer()
Method Detail |
---|
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 ParticleInfluencer 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |