Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 3, 2014, 1:50:22 PM (10 years ago)
Author:
landauf
Message:

replaced tabs with spaces. no changes in code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/objects/ForceField.cc

    r9939 r9945  
    203203        else if(this->mode_ == forceFieldMode::homogen)
    204204        {
    205                 // Iterate over all objects that could possibly be affected by the ForceField.
    206                 for (ObjectList<MobileEntity>::iterator it = ObjectList<MobileEntity>::begin(); it != ObjectList<MobileEntity>::end(); ++it)
    207                 {
    208                         Vector3 distanceVector = it->getWorldPosition() - this->getWorldPosition();
    209                     float distance = distanceVector.length();
    210                     if (distance < this->radius_ && distance > this->massRadius_)
    211                     {
    212                         // Add a Acceleration in forceDirection_.
    213                         // Vector3(0,0,0) is the direction, where the force should work.
    214                         it->addAcceleration(forceDirection_ , Vector3(0,0,0));
    215                     }
    216                 }
     205            // Iterate over all objects that could possibly be affected by the ForceField.
     206            for (ObjectList<MobileEntity>::iterator it = ObjectList<MobileEntity>::begin(); it != ObjectList<MobileEntity>::end(); ++it)
     207            {
     208                Vector3 distanceVector = it->getWorldPosition() - this->getWorldPosition();
     209                float distance = distanceVector.length();
     210                if (distance < this->radius_ && distance > this->massRadius_)
     211                {
     212                    // Add a Acceleration in forceDirection_.
     213                    // Vector3(0,0,0) is the direction, where the force should work.
     214                    it->addAcceleration(forceDirection_ , Vector3(0,0,0));
     215                }
     216            }
    217217        }
    218218    }
Note: See TracChangeset for help on using the changeset viewer.