Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 3:47:45 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: size should iterate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/lib/graphics/particles/particle_system.cc

    r3935 r3936  
    9696     
    9797      tickPart->position = tickPart->position + tickPart->velocity;
     98      tickPart->radius + tickPart->radiusIt * dt;
    9899      // many more to come
    99      
    100 
    101100
    102101
     
    172171      particles->velocity = velocity;
    173172      //  particle->rotation = ; //! \todo rotation is once again something to be done.
    174       particles->mass = this->initialMass + (random()/RAND_MAX)* this->randomInitialMass;
    175       particles->radius = this->startRadius + (random()/RAND_MAX)*this->randomRadius;
     173      particles->mass = this->initialMass + (random()/RAND_MAX -.5)* this->randomInitialMass;
     174      particles->radius = this->startRadius + (random()/RAND_MAX-.5)*this->randomRadius;
     175     
     176      particles->radiusIt = (this->endRadius + (random()/RAND_MAX-.5)*this->randomRadius - particles->radius) / particles->timeToLive;
    176177
    177178      ++this->count;
Note: See TracChangeset for help on using the changeset viewer.