mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
*** empty log message ***
This commit is contained in:
parent
ffecbe0e9a
commit
82d5bda6a5
@ -41,6 +41,31 @@ induce_labor() {
|
||||
_tics_since_birth = _birth_rate;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
// Function : clear_to_initial
|
||||
// Access : Public
|
||||
// Description : Resets the system to its start state by resizing to 0,
|
||||
// then resizing back to current size.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
||||
INLINE void ParticleSystem::
|
||||
clear_to_initial() {
|
||||
BaseParticle *bp;
|
||||
int index;
|
||||
int i;
|
||||
|
||||
//int particle_pool_size = _particle_pool_size;
|
||||
//resize_pool(0);
|
||||
//resize_pool(particle_pool_size);
|
||||
|
||||
for(i = 0; i < _physics_objects.size(); i++)
|
||||
{
|
||||
bp = (BaseParticle *)_physics_objects[i].p();
|
||||
if(bp->get_alive())
|
||||
kill_particle(i);
|
||||
}
|
||||
}
|
||||
|
||||
//// ///////////////////////////////////////////////////////
|
||||
//// SET METHODS ///////////////////////////////////////////////////////
|
||||
//// ///////////////////////////////////////////////////////
|
||||
|
@ -101,6 +101,7 @@ PUBLISHED:
|
||||
|
||||
INLINE void render();
|
||||
INLINE void induce_labor();
|
||||
INLINE void clear_to_initial();
|
||||
void update(float dt);
|
||||
|
||||
virtual void output(ostream &out) const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user