Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 23, 2009, 7:04:10 PM (15 years ago)
Author:
landauf
Message:

some small adjustments in all the new gametype classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/gametypes/src/orxonox/objects/worldentities/ForceField.cc

    r3019 r3020  
    5353    {
    5454      SUPER(ForceField, XMLPort, xmlelement, mode);
    55    
     55
    5656      //For correct xml import use: position, direction, velocity, scale
    5757
     
    6060      XMLPortParam(ForceField, "length"  , setLength  , getLength  , xmlelement, mode).defaultValues(2000);
    6161    }
    62  
     62
    6363    void ForceField::tick(float dt)
    6464    {
    65      
     65
    6666      for (ObjectList<MobileEntity>::iterator it = ObjectList<MobileEntity>::begin(); it != ObjectList<MobileEntity>::end(); ++it)
    6767      {
    68        
    69         //calculate from 
     68
     69        //calculate from
    7070        Vector3 directionVec = this->getOrientation() * WorldEntity::FRONT;
    7171        directionVec.normalise();
     
    8181          it->applyCentralForce(((diameter_ / 2 - distFromCenterVec) / (diameter_ / 2)) * directionVec * velocity_);
    8282        }
    83        
     83
    8484      }
    8585  }
Note: See TracChangeset for help on using the changeset viewer.