Changeset 7183 for code/trunk/src/orxonox/controllers
- Timestamp:
- Aug 18, 2010, 7:49:31 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/controllers/ArtificialController.cc
r7163 r7183 498 498 { 499 499 pos = Vector3::ZERO; 500 if (i <= 1) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::LEFT);501 if (i == 2) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::RIGHT);502 if (i == 3) pos += dest + FORMATION_WIDTH*(orient*WorldEntity::UP);500 if (i <= 1) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::LEFT); 501 if (i == 2) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::RIGHT); 502 if (i == 3) pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::UP); 503 503 if (i >= 4) 504 504 { 505 pos += dest + FORMATION_WIDTH*(orient*WorldEntity::DOWN);505 pos += dest + (float)FORMATION_WIDTH*(orient*WorldEntity::DOWN); 506 506 i = 1; 507 dest += FORMATION_LENGTH*(orient*WorldEntity::BACK);507 dest += (float)FORMATION_LENGTH*(orient*WorldEntity::BACK); 508 508 (*it)->setTargetPosition(pos); 509 509 continue;
Note: See TracChangeset
for help on using the changeset viewer.