|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jmex.effects.particles.ParticleInfluence
public abstract class ParticleInfluence
ParticleInfluence is an abstract class defining an external
influence to be used with the ParticleMesh class.
| Constructor Summary | |
|---|---|
ParticleInfluence()
|
|
| Method Summary | |
|---|---|
abstract void |
apply(float dt,
Particle particle,
int index)
Apply the influence defined by this class on a given particle. |
java.lang.Class |
getClassTag()
The peristed type for the object. |
boolean |
isEnabled()
Return whether or not this influence is enabled. |
void |
prepare(ParticleSystem particleGeom)
Gives the influence a chance to perform any necessary initialization immediately before apply(float, com.jmex.effects.particles.Particle, int) is called on each particle for the
current frame. |
void |
read(JMEImporter e)
|
void |
setEnabled(boolean enabled)
Set this influence enabled or not. |
void |
write(JMEExporter e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ParticleInfluence()
| Method Detail |
|---|
public void setEnabled(boolean enabled)
enabled - booleanpublic boolean isEnabled()
public void prepare(ParticleSystem particleGeom)
apply(float, com.jmex.effects.particles.Particle, int) is called on each particle for the
current frame.
particleGeom - the particle system containing the influence
public abstract void apply(float dt,
Particle particle,
int index)
dt - amount of time since last apply call in ms.particle - the particle to apply the influence to.index - the index of the particle we are working with. This is useful
for adding small steady amounts of variation, or remembering information.
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablejava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savablejava.io.IOExceptionpublic java.lang.Class getClassTag()
Savable
getClassTag in interface Savable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||