- Timestamp:
- Nov 13, 2015, 4:45:44 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/AI_HS15/src/orxonox/controllers/DivisionController.cc
r10797 r10800 69 69 }*/ 70 70 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_) 76 76 { 77 77 executingMoveToPoint_ = !this->moveAndRoll(dt); … … 89 89 Vector3 diffVector = this->positionOfTarget_ - this->getControllableEntity()->getWorldPosition(); 90 90 float diffLength = diffVector.length(); 91 /*Quaternion rotationToTarget = (this->getControllableEntity()->getOrientation() * WorldEntity::FRONT).getRotationTo(diffVector);91 Quaternion rotationToTarget = (this->getControllableEntity()->getOrientation() * WorldEntity::FRONT).getRotationTo(diffVector); 92 92 Vector3* targetPosition = new Vector3 ( 0, 0, -200 ); 93 Vector3 target = rotationToTarget * (*targetPosition); */93 Vector3 target = rotationToTarget * (*targetPosition); 94 94 if (diffLength > 200) 95 95 this->setTargetPosition( this->positionOfTarget_ - 0.6f*diffVector); … … 106 106 this->moveAndRoll(dt); 107 107 } 108 } 109 if (this->bShooting_ )108 }*/ 109 if (this->bShooting_ && this->canFire()) 110 110 doFire(); 111 111 SUPER(DivisionController, tick, dt); … … 135 135 }*/ 136 136 //this->chooseManeuverType(); 137 this->maneuver(); 138 137 139 switch (this->maneuverType_) 138 140 {
Note: See TracChangeset
for help on using the changeset viewer.