Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

replaced tabs with spaces. no changes in code

Location:
code/trunk/src/modules/objects
Files:
2 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    }
  • code/trunk/src/modules/objects/Turret.cc

    r9667 r9945  
    5757    void Turret::rotatePitch(const Vector2& value)
    5858    {
    59         orxout()<< "Turret rotate Pitch"<< endl;
     59        orxout()<< "Turret rotate Pitch"<< endl;
    6060
    61         const Quaternion& orient = this->getOrientation();
    62         Radian pitch = orient.getPitch();
     61        const Quaternion& orient = this->getOrientation();
     62        Radian pitch = orient.getPitch();
    6363
    64         if((value.x > 0 && pitch < Radian(180)) || (value.x < 0 && pitch > Radian(0)))
    65                 SpaceShip::rotatePitch(value);
     64        if((value.x > 0 && pitch < Radian(180)) || (value.x < 0 && pitch > Radian(0)))
     65            SpaceShip::rotatePitch(value);
    6666    }
    6767
     
    6969    void Turret::setAlertnessRadius(float value)
    7070    {
    71         this->controller_->setAlertnessRadius(value);
     71        this->controller_->setAlertnessRadius(value);
    7272    }
    7373    float Turret::getAlertnessRadius()
    7474    {
    75         return this->controller_->getAlertnessRadius();
     75        return this->controller_->getAlertnessRadius();
    7676    }
    7777
Note: See TracChangeset for help on using the changeset viewer.