Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4377 in orxonox.OLD for orxonox/trunk/src/lib/graphics


Ignore:
Timestamp:
May 29, 2005, 1:24:40 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: ParticleSystem is now a PhysicsInterface

Location:
orxonox/trunk/src/lib/graphics/particles
Files:
2 edited

Legend:

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

    r4370 r4377  
    289289/**
    290290    \brief applies some force to a Particle.
     291    \param field the Field to apply.
     292    \param dt The time over which the field gets applied
    291293 */
    292 void ParticleSystem::applyField(float dt, Field* field)
     294void ParticleSystem::applyField(Field* field, float dt)
    293295{
    294296  Particle* tickPart = particles;
  • orxonox/trunk/src/lib/graphics/particles/particle_system.h

    r4349 r4377  
    88
    99#include "base_object.h"
     10#include "physics_interface.h"
     11
    1012#include "vector.h"
    1113
     
    5557
    5658//! A class to handle particle Systems
    57 class ParticleSystem : public BaseObject {
     59class ParticleSystem : public PhysicsInterface {
    5860  friend class ParticleEmitter;
    5961
     
    9597  inline float getMass(void) const { return this->initialMass; };
    9698
    97   void applyField(float dt, Field* field);
     99  void applyField(Field* field, float dt);
    98100
    99101  void tick(float dt);
Note: See TracChangeset for help on using the changeset viewer.