Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2005, 12:28:20 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: some minor fixes

File:
1 edited

Legend:

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

    r3948 r3951  
    184184  while (likely(tickPart != NULL))
    185185    {
    186      
    187186      tickPart->position = tickPart->position + tickPart->velocity;
    188187      tickPart->radius += tickPart->radiusIt * dt;
    189188
    190189      // many more to come
    191 
    192190
    193191
     
    271269   \param data some more data given by the emitter
    272270*/
    273 void ParticleSystem::addParticle(Vector position, Vector velocity, unsigned int data)
     271void ParticleSystem::addParticle(const Vector& position, const Vector& velocity, unsigned int data)
    274272{
    275273  if (this->count <= this->maxCount)
     
    292290      particles->position = position;
    293291      particles->velocity = velocity;
     292
    294293      //  particle->rotation = ; //! \todo rotation is once again something to be done.
    295294      particles->mass = this->initialMass + (random()/RAND_MAX -.5)* this->randomInitialMass;
Note: See TracChangeset for help on using the changeset viewer.