Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4378 in orxonox.OLD for orxonox/trunk/src/lib/physics


Ignore:
Timestamp:
May 29, 2005, 2:02:56 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: applying force works for particle-systems again

Location:
orxonox/trunk/src/lib/physics
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/physics/physics_connection.cc

    r4377 r4378  
    2626using namespace std;
    2727
    28 
    29 
    3028PhysicsConnection::PhysicsConnection(PhysicsInterface* subject, Field* field)
    3129{
     
    5351void PhysicsConnection::apply(const float& dt) const
    5452{
    55   switch(this->type)
    56     {
    57     case PCON_PhysIField:
    58      
    59       break;
    60 
    61     case PCON_PhysIPhysI:
     53  if (likely(this->type == PCON_PhysIField))
    6254      this->subject->applyField(this->field, dt);
    63       break;
    64     }
     55  else ;
    6556}
  • orxonox/trunk/src/lib/physics/physics_engine.cc

    r4338 r4378  
    100100  delete iterator;
    101101}
     102
     103
     104
     105/**
     106   \brief print out interesting debug information of this class
     107*/
     108void PhysicsEngine::debug(void) const
     109{
     110  PRINT(0)("====================================\n");
     111  PRINT(0)("= Physics-Engine debug information =\n");
     112  PRINT(0)("====================================\n");
     113  PRINT(0)(" reference: %p\n", this);
     114  PRINT(0)(" numbers of Connections: %d\n", this->connections->getSize());
     115
     116  PRINT(0)("==============================PHYS==\n");
     117}
  • orxonox/trunk/src/lib/physics/physics_engine.h

    r4375 r4378  
    2929  void tick(float dt);
    3030
     31  void debug(void) const;
     32
    3133 private:
    3234  PhysicsEngine(void);
     
    3436
    3537  tList<PhysicsConnection>* connections;
    36 
    37  
    3838};
    3939
Note: See TracChangeset for help on using the changeset viewer.