mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
Added ability to force birth of a particle litter
This commit is contained in:
parent
36b15e40cb
commit
141cb888f6
@ -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 ///////////////////////////////////////////////////////
|
||||||
//// ///////////////////////////////////////////////////////
|
//// ///////////////////////////////////////////////////////
|
||||||
|
@ -146,6 +146,7 @@ PUBLISHED:
|
|||||||
// methods
|
// methods
|
||||||
|
|
||||||
INLINE void render(void);
|
INLINE void render(void);
|
||||||
|
INLINE void induce_labor(void);
|
||||||
void update(float dt);
|
void update(float dt);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user