Added support for rapid movement of the emitter, with particle now seeding between
the position of the emitter in the previous frame and the new position in the new frame, the number of particles added also scales up to compensate for this movement.
This commit is contained in:
@@ -17,7 +17,9 @@ osgParticle::ParticleProcessor::ParticleProcessor()
|
||||
_enabled(true),
|
||||
_t0(-1),
|
||||
_ps(0),
|
||||
_first_ltw_compute(true),
|
||||
_need_ltw_matrix(false),
|
||||
_first_wtl_compute(true),
|
||||
_need_wtl_matrix(false),
|
||||
_current_nodevisitor(0),
|
||||
_endless(true),
|
||||
@@ -35,7 +37,9 @@ osgParticle::ParticleProcessor::ParticleProcessor(const ParticleProcessor& copy,
|
||||
_enabled(copy._enabled),
|
||||
_t0(copy._t0),
|
||||
_ps(static_cast<ParticleSystem* >(copyop(copy._ps.get()))),
|
||||
_first_ltw_compute(copy._first_ltw_compute),
|
||||
_need_ltw_matrix(copy._need_ltw_matrix),
|
||||
_first_wtl_compute(copy._first_wtl_compute),
|
||||
_need_wtl_matrix(copy._need_wtl_matrix),
|
||||
_current_nodevisitor(0),
|
||||
_endless(copy._endless),
|
||||
|
||||
Reference in New Issue
Block a user