Changeset 11030 for code/branches/presentationHS15/src/orxonox/controllers
- Timestamp:
- Jan 3, 2016, 9:28:44 PM (9 years ago)
- Location:
- code/branches/presentationHS15/src/orxonox/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15/src/orxonox/controllers/SectionController.cc
r11026 r11030 192 192 case FormationMode::WALL: 193 193 { 194 targetRelativePosition = new Vector3 (-2 *this->spread_, 0, 0);194 targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 0); 195 195 break; 196 196 } 197 197 case FormationMode::FINGER4: 198 198 { 199 targetRelativePosition = new Vector3 (-2 *this->spread_, 0,this->spread_);199 targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 1.0f*this->spread_); 200 200 break; 201 201 } … … 203 203 case FormationMode::DIAMOND: 204 204 { 205 targetRelativePosition = new Vector3 (-2 *this->spread_, 0, this->spread_);205 targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 1.0f*this->spread_); 206 206 break; 207 207 } -
code/branches/presentationHS15/src/orxonox/controllers/WingmanController.cc
r11026 r11030 132 132 case FormationMode::WALL: 133 133 { 134 targetRelativePosition = new Vector3 (2 *this->spread_, 0, 0 - this->tolerance_);134 targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, 0 - 1.0f*this->tolerance_); 135 135 break; 136 136 } 137 137 case FormationMode::FINGER4: 138 138 { 139 targetRelativePosition = new Vector3 (2 *this->spread_, 0, this->spread_ - this->tolerance_);139 targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_); 140 140 break; 141 141 } 142 142 case FormationMode::DIAMOND: 143 143 { 144 targetRelativePosition = new Vector3 (2 *this->spread_, 0, this->spread_ - this->tolerance_);144 targetRelativePosition = new Vector3 (2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_); 145 145 break; 146 146 } … … 152 152 case FormationMode::WALL: 153 153 { 154 targetRelativePosition = new Vector3 (-2 *this->spread_, 0, 0 - this->tolerance_);154 targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, 0 - 1.0f*this->tolerance_); 155 155 break; 156 156 } 157 157 case FormationMode::FINGER4: 158 158 { 159 targetRelativePosition = new Vector3 (-2 *this->spread_, 0, this->spread_ - this->tolerance_);159 targetRelativePosition = new Vector3 (-2.0f*this->spread_, 0, this->spread_ - 1.0f*this->tolerance_); 160 160 break; 161 161 } 162 162 case FormationMode::DIAMOND: 163 163 { 164 targetRelativePosition = new Vector3 (2 *this->spread_, -this->spread_, 0 - this->tolerance_);164 targetRelativePosition = new Vector3 (2.0f*this->spread_, -1.0f*this->spread_, 0 - 1.0f*this->tolerance_); 165 165 break; 166 166 }
Note: See TracChangeset
for help on using the changeset viewer.