jme.entity.effects
Class Particle

java.lang.Object
  extended byjme.entity.effects.Particle

public class Particle
extends java.lang.Object

Particle represents a single particle that is part of a larger particle emitter. It maintains the information required to model an object traveling in space. Things such as position, velocity, color, size are all contained within the Particle class.

Version:
$Id: Particle.java,v 1.2 2003/09/03 18:05:36 mojomonkey Exp $
Author:
Mark Powell

Field Summary
 Vector color
          the color of the particle in RGB format.
 float fade
          denotes the amount to degrade the particles life each turn.
 float life
          denotes the amount of life left for the particlular particle.
 Vector position
          the location in 3D space of the particle.
 Vector size
          the size of the particle.
 Vector velocity
          the direction the particle is traveling in.
 
Constructor Summary
Particle()
          Constructor instantiates a new Particle and initializes all the variables.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

life

public float life
denotes the amount of life left for the particlular particle. Full health is 1 and dead is 0. The amount the particle is drained each update is dependant on the fade value.


fade

public float fade
denotes the amount to degrade the particles life each turn. This value should be between 0 and 1.


color

public Vector color
the color of the particle in RGB format.


position

public Vector position
the location in 3D space of the particle.


velocity

public Vector velocity
the direction the particle is traveling in.


size

public Vector size
the size of the particle.

Constructor Detail

Particle

public Particle()
Constructor instantiates a new Particle and initializes all the variables.

Method Detail

toString

public java.lang.String toString()