Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 25, 2015, 6:46:20 PM (8 years ago)
Author:
gania
Message:

almost all works now, check AITest.oxw

File:
1 edited

Legend:

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

    r10858 r10859  
    130130                        return;
    131131                    }
     132                   
    132133                    ControllableEntity* leaderEntity = this->myLeader_->getControllableEntity();
    133134                    Quaternion orient = leaderEntity->getWorldOrientation();
     
    176177                case FormationMode::WALL:
    177178                {
    178                     targetRelativePositionOfWingman = new Vector3 (400, 0, 0); 
     179                    targetRelativePosition = new Vector3 (400, 0, 0); 
    179180                    break;
    180181                }
    181182                case FormationMode::FINGER4:
    182183                {
    183                     targetRelativePositionOfWingman = new Vector3 (400, 0, 200); 
     184                    targetRelativePosition = new Vector3 (400, 0, 200); 
    184185                    break;
    185186                }
    186187                case FormationMode::DIAMOND:
    187188                {
    188                     targetRelativePositionOfWingman = new Vector3 (400, 0, 200);                 
     189                    targetRelativePosition = new Vector3 (400, 0, 200);                 
    189190                    break;
    190191                }
     
    193194        else
    194195        {
     196
    195197            switch (this->formationMode_){
    196198                case FormationMode::WALL:
    197199                {
    198                     targetRelativePositionOfWingman = new Vector3 (-400, 0, 0); 
     200                    targetRelativePosition = new Vector3 (-400, 0, 0); 
    199201                    break;
    200202                }
    201203                case FormationMode::FINGER4:
    202204                {
    203                     targetRelativePositionOfWingman = new Vector3 (-400, 0, 200); 
     205                    targetRelativePosition = new Vector3 (-400, 0, 200); 
    204206                    break;
    205207                }
    206208                case FormationMode::DIAMOND:
    207209                {
    208                     targetRelativePositionOfWingman = new Vector3 (400, -200, 0);                 
     210                    targetRelativePosition = new Vector3 (400, -200, 0);                 
    209211                    break;
    210212                }
Note: See TracChangeset for help on using the changeset viewer.