|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParticleFunction
ParticleFunction is the basic interface for functions that can modify the fields of a Particle. A function may act on any of the fields of a particle, though typically it is on the size and position. Some movement functions will modify the force/energy of a particle while others will convert the energy into position deltas.
Method Summary | |
---|---|
boolean |
apply(Particle particle)
Apply this function to the given particle right now. |
boolean |
isEnabled()
Check to see if this function has been enabled or not currently. |
boolean |
newFrame(int deltaT)
Notification that the system is about to do an update of the particles and to do any system-level initialisation. |
void |
setEnabled(boolean state)
Set the enabled state of this function. |
Method Detail |
---|
boolean isEnabled()
void setEnabled(boolean state)
state
- The new enabled state to set it toboolean apply(Particle particle)
particle
- The particle that is being updated
boolean newFrame(int deltaT)
deltaT
- The elapsed time in milliseconds since the last frame
|
j3d.org Code | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |