Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6630 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Jan 20, 2006, 9:33:36 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: precache works, and the particle-systems get Linked.. (HACK)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/particles/particle_system.cc

    r6629 r6630  
    260260void ParticleSystem::precache(unsigned int seconds, unsigned int ticksPerSecond)
    261261{
     262
     263  std::list<ParticleEmitter*>::iterator emitter;
     264  for (emitter = this->emitters.begin(); emitter != this->emitters.end(); emitter++)
     265    (*emitter)->updateNode(.1), (*emitter)->updateNode(.1);
     266
    262267  PRINTF(4)("Precaching %s::%s %d seconds %d timesPerSecond\n", this->getClassName(), this->getName(), seconds, ticksPerSecond);
    263268  this->debug();
     
    275280void ParticleSystem::tick(float dt)
    276281{
     282  printf("TICKED %f %d\n", dt, this->count);
    277283  Particle* tickPart = particles;  // the particle to Tick
    278284  Particle* prevPart = NULL;
Note: See TracChangeset for help on using the changeset viewer.