Added ability to force birth of a particle litter

This commit is contained in:
Mark Mine 2002-10-19 23:33:11 +00:00
parent 36b15e40cb
commit 141cb888f6
2 changed files with 13 additions and 0 deletions

View File

@ -29,6 +29,18 @@ render(void) {
_renderer->render(_physics_objects, _living_particles);
}
////////////////////////////////////////////////////////////////////
// Function : induce_labor
// Access : Public
// Description : Forces the birth of a particle litter this frame
// by resetting _tics_since_birth
////////////////////////////////////////////////////////////////////
INLINE void ParticleSystem::
induce_labor(void) {
_tics_since_birth = _birth_rate;
}
//// ///////////////////////////////////////////////////////
//// SET METHODS ///////////////////////////////////////////////////////
//// ///////////////////////////////////////////////////////

View File

@ -146,6 +146,7 @@ PUBLISHED:
// methods
INLINE void render(void);
INLINE void induce_labor(void);
void update(float dt);
public: