#include <gameobjs.h>
Inheritance diagram for Particle:


Getting more specialised now, as now we have lifetimes
Public Member Functions | |
| Particle () | |
| Simple constructor. | |
| void | regen (Vec4 pos, Vec4 dir, float spread, Vec4 spd) |
| Revive the particle (essentially create a new one, but it's the same object). | |
| void | render (void) |
| GL_POINT, with no lighting. | |
| void | update (float time) |
| As well as other physics updates, age it. | |
|
|
Simple constructor. Ensure life is set to 0 and gravity is applied. |
|
||||||||||||||||||||
|
Revive the particle (essentially create a new one, but it's the same object). A new particle is created in the middle of the ship, broadly directed out the back, but a random component is added around the y and z axes. The velocity and life are also slightly random. Looks nice.
|
Here is the call graph for this function:

|
|
As well as other physics updates, age it.
Implements AbsObj. |
Here is the call graph for this function:

1.3.9.1