|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectj3d.examples.particles.influences.Shape3DInfluence
j3d.examples.particles.influences.FadeShape
public class FadeShape
Constructor Summary | |
---|---|
FadeShape()
Fade the opacity of a particle shape from fully opaque (transparency = 0) to fully transparent (transparency = 1) over the life of the affected particles. |
|
FadeShape(ParticleAgeAlpha anAlpha)
Fade the alpha component of the color of a shape based on the ParticleAgeAlpha object over the life of the affected particle. |
Method Summary | |
---|---|
void |
apply(Particle aParticle,
float dt)
Apply this (possibly time varying) influence to the particle for the time interval. |
void |
initializeParticle(Particle aParticle)
Initialize a particle prior to the first emission. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FadeShape()
public FadeShape(ParticleAgeAlpha anAlpha)
anAlpha
- - The particle age alpha to
control the opacity of the shape.Method Detail |
---|
public void initializeParticle(Particle aParticle)
IExternalInfluence
initializeParticle
in interface IExternalInfluence
aParticle
- - the particle to initialize.public void apply(Particle aParticle, float dt)
IExternalInfluence
apply
in interface IExternalInfluence
aParticle
- - The particle to updatedt
- - The time interval (in seconds) since the last apply
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |