![]() |
Resonance Game
Team Walterio Fuchsbauer
|
Class which represents a single particle of a particle system. More...
Public Member Functions | |
bool | isDead () |
Properties. | |
float | getSize () |
Vector3 | getPos () |
Vector3 | getRotation () |
Color | getColour () |
void | setDieOnFloor (bool b) |
void | setSpin (Vector3 newSpin) |
Particle (Vector3 p, Vector3 iDirection, float iSpeed, float s, int iLife, Color c, float iAlpha, Vector3 f, float d, bool b) | |
Constructor. | |
Particle () | |
void | init (Vector3 p, Vector3 iDirection, float iSpeed, float s, int iLife, Color c, float iAlpha, Vector3 f, float d, bool b) |
void | update () |
Class which represents a single particle of a particle system.
Resonance.Particle.Particle | ( | Vector3 | p, |
Vector3 | iDirection, | ||
float | iSpeed, | ||
float | s, | ||
int | iLife, | ||
Color | c, | ||
float | iAlpha, | ||
Vector3 | f, | ||
float | d, | ||
bool | b | ||
) |
Constructor.
p | Initial particle position. |
iDirection | Initial direction of travel. |
iSpeed | Initial speed. |
s | Initial size. |
iLife | Lifespan (in frames). |
c | Initial colour. |
iAlpha | Initial alpha transparency. |
f | Constantly applied force (e.g. gravity). |
Color Resonance.Particle.getColour | ( | ) |
Vector3 Resonance.Particle.getPos | ( | ) |
Vector3 Resonance.Particle.getRotation | ( | ) |
float Resonance.Particle.getSize | ( | ) |
void Resonance.Particle.init | ( | Vector3 | p, |
Vector3 | iDirection, | ||
float | iSpeed, | ||
float | s, | ||
int | iLife, | ||
Color | c, | ||
float | iAlpha, | ||
Vector3 | f, | ||
float | d, | ||
bool | b | ||
) |
bool Resonance.Particle.isDead | ( | ) |
Properties.
void Resonance.Particle.setDieOnFloor | ( | bool | b | ) |
void Resonance.Particle.setSpin | ( | Vector3 | newSpin | ) |
void Resonance.Particle.update | ( | ) |