Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 13, 2015, 4:45:44 PM (8 years ago)
Author:
gania
Message:

compilable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/DivisionController.cc

    r10797 r10800  
    6969        }*/
    7070       
    71        /* if (this->bHasTargetPosition_)
    72         {
    73             this->moveToTargetPosition();
    74         }*/
    75         if (executingMoveToPoint_)
     71        if (this->bHasTargetPosition_)
     72        {
     73            this->moveToTargetPosition(dt);
     74        }
     75       /* if (executingMoveToPoint_)
    7676        {
    7777            executingMoveToPoint_ = !this->moveAndRoll(dt);
     
    8989                Vector3 diffVector = this->positionOfTarget_ - this->getControllableEntity()->getWorldPosition();
    9090                float diffLength = diffVector.length();
    91                /* Quaternion rotationToTarget = (this->getControllableEntity()->getOrientation() * WorldEntity::FRONT).getRotationTo(diffVector);
     91                Quaternion rotationToTarget = (this->getControllableEntity()->getOrientation() * WorldEntity::FRONT).getRotationTo(diffVector);
    9292                Vector3* targetPosition = new Vector3 ( 0, 0, -200 );
    93                 Vector3 target = rotationToTarget * (*targetPosition);*/
     93                Vector3 target = rotationToTarget * (*targetPosition);
    9494                if (diffLength > 200)
    9595                    this->setTargetPosition( this->positionOfTarget_ - 0.6f*diffVector);
     
    106106                this->moveAndRoll(dt);
    107107            }
    108         }
    109         if (this->bShooting_)
     108        }*/
     109        if (this->bShooting_ && this->canFire())
    110110            doFire();
    111111        SUPER(DivisionController, tick, dt);
     
    135135        }*/
    136136        //this->chooseManeuverType();
     137                    this->maneuver();
     138
    137139        switch (this->maneuverType_)
    138140        {
Note: See TracChangeset for help on using the changeset viewer.