Changeset 10834 for code/branches/campaignHS15/src/orxonox/controllers
- Timestamp:
- Nov 23, 2015, 1:24:51 PM (9 years ago)
- Location:
- code/branches/campaignHS15
- Files:
-
- 3 edited
- 10 copied
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15
-
code/branches/campaignHS15/src/orxonox/controllers/CMakeLists.txt
r10216 r10834 11 11 FormationController.cc 12 12 ControllerDirector.cc 13 DivisionController.cc 14 LeaderController.cc 15 WingmanController.cc 16 SectionController.cc 17 CommonController.cc 13 18 ) -
code/branches/campaignHS15/src/orxonox/controllers/FormationController.cc
r10631 r10834 277 277 } 278 278 279 Vector2 coord = get2DView coordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);279 Vector2 coord = get2DViewCoordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target); 280 280 float distance = (target - this->getControllableEntity()->getPosition()).length(); 281 281 float rotateX = clamp(coord.x * 10, -1.0f, 1.0f); … … 1069 1069 return; 1070 1070 1071 Vector2 coord = get2DView coordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target);1071 Vector2 coord = get2DViewCoordinates(this->getControllableEntity()->getPosition(), this->getControllableEntity()->getOrientation() * WorldEntity::FRONT, this->getControllableEntity()->getOrientation() * WorldEntity::UP, target); 1072 1072 float distance = (target - this->getControllableEntity()->getPosition()).length(); 1073 1073
Note: See TracChangeset
for help on using the changeset viewer.