|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.effect.Particle
public final class Particle
Contains the state of a single particle.
| Field Summary | |
|---|---|
float |
depth
The depth of the particle (used for depth sorting). |
| Constructor Summary | |
|---|---|
Particle()
|
|
| Method Summary | |
|---|---|
Vector3f |
getAngularVelocity()
Returns a reference to the particle's angular velocity. |
Color4f |
getColor()
Returns a reference to the particle's color. |
float |
getFrame()
Returns the particle's texture frame. |
Quaternion |
getOrientation()
Returns a reference to the particle's orientation. |
Vector3f |
getPosition()
Returns a reference to the particle's position. |
Vector3f |
getPosition(float t,
Vector3f result)
Computes the particle's position at some point in its past (where 0 is the oldest position and 1 is the newest). |
float |
getSize()
Returns the particle's size. |
float |
getSize(float t)
Computes the particle's size at some point in its past. |
Vector3f |
getVelocity()
Returns a reference to the particle's (linear) velocity. |
void |
init(float lifespan,
AlphaMode alphaMode,
ColorFunctionVariable color,
FloatFunctionVariable size,
FloatFunctionVariable length,
FloatFunctionVariable frame,
Transform3D historyTransform)
Initializes the particle. |
void |
setSize(float size)
Sets the particle's size. |
boolean |
tick(float elapsed)
Updates the particle state based on the elapsed time in seconds. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public float depth
| Constructor Detail |
|---|
public Particle()
| Method Detail |
|---|
public Vector3f getPosition()
public Vector3f getPosition(float t,
Vector3f result)
public float getSize(float t)
public Vector3f getVelocity()
public Quaternion getOrientation()
public Vector3f getAngularVelocity()
public Color4f getColor()
public void setSize(float size)
public float getSize()
public float getFrame()
public void init(float lifespan,
AlphaMode alphaMode,
ColorFunctionVariable color,
FloatFunctionVariable size,
FloatFunctionVariable length,
FloatFunctionVariable frame,
Transform3D historyTransform)
public boolean tick(float elapsed)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||