|
@@ -29,6 +29,18 @@ render(void) {
|
|
|
_renderer->render(_physics_objects, _living_particles);
|
|
_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 ///////////////////////////////////////////////////////
|
|
//// SET METHODS ///////////////////////////////////////////////////////
|
|
|
//// ///////////////////////////////////////////////////////
|
|
//// ///////////////////////////////////////////////////////
|