Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 27, 2015, 9:49:16 AM (9 years ago)
Author:
gania
Message:

introduced spread

Location:
code/branches/campaignHS15/src/orxonox/controllers
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/SectionController.cc

    r10869 r10873  
    252252            case FormationMode::WALL:
    253253            {
    254                 targetRelativePosition = new Vector3 (-400, 0, 0);   
     254                targetRelativePosition = new Vector3 (-2*this->spread_, 0, 0);   
    255255                break;
    256256            }
    257257            case FormationMode::FINGER4:
    258258            {
    259                 targetRelativePosition = new Vector3 (-400, 0, 200);   
     259                targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_);   
    260260                break;
    261261            }
     
    263263            case FormationMode::DIAMOND:
    264264            {
    265                 targetRelativePosition = new Vector3 (-400, 0, 200);                   
     265                targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_);                   
    266266                break;
    267267            }
  • code/branches/campaignHS15/src/orxonox/controllers/WingmanController.cc

    r10869 r10873  
    176176                case FormationMode::WALL:
    177177                {
    178                     targetRelativePosition = new Vector3 (400, 0, 0); 
     178                    targetRelativePosition = new Vector3 (2*this->spread_, 0, 0); 
    179179                    break;
    180180                }
    181181                case FormationMode::FINGER4:
    182182                {
    183                     targetRelativePosition = new Vector3 (400, 0, 200); 
     183                    targetRelativePosition = new Vector3 (2*this->spread_, 0, this->spread_); 
    184184                    break;
    185185                }
    186186                case FormationMode::DIAMOND:
    187187                {
    188                     targetRelativePosition = new Vector3 (400, 0, 200);                 
     188                    targetRelativePosition = new Vector3 (2*this->spread_, 0, this->spread_);                 
    189189                    break;
    190190                }
     
    197197                case FormationMode::WALL:
    198198                {
    199                     targetRelativePosition = new Vector3 (-400, 0, 0); 
     199                    targetRelativePosition = new Vector3 (-2*this->spread_, 0, 0); 
    200200                    break;
    201201                }
    202202                case FormationMode::FINGER4:
    203203                {
    204                     targetRelativePosition = new Vector3 (-400, 0, 200); 
     204                    targetRelativePosition = new Vector3 (-2*this->spread_, 0, this->spread_); 
    205205                    break;
    206206                }
    207207                case FormationMode::DIAMOND:
    208208                {
    209                     targetRelativePosition = new Vector3 (400, -200, 0);                 
     209                    targetRelativePosition = new Vector3 (2*this->spread_, -this->spread_, 0);                 
    210210                    break;
    211211                }
Note: See TracChangeset for help on using the changeset viewer.