Changeset 11030 for code/branches/presentationHS15
- Timestamp:
- Jan 3, 2016, 9:28:44 PM (9 years ago)
- Location:
- code/branches/presentationHS15/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentationHS15/src/modules/hover/FlagHUD.cc
r11026 r11030 69 69 this->panel_->_getRelativeHeight() 70 70 ); 71 this->panel_->setTiling(flagCount , 1.0f);71 this->panel_->setTiling(flagCount*1.0f, 1.0f); 72 72 73 73 this->flagCount_ = flagCount; -
code/branches/presentationHS15/src/modules/hover/HoverFlag.cc
r11029 r11030 74 74 model_->setMeshSource("ss_flag_eu.mesh"); 75 75 model_->setScale3D(Vector3(5, 5, 5)); 76 model_->setPosition(Vector3(xCoordinate*100 + 50,10,yCoordinate*100 + 50));76 model_->setPosition(Vector3(xCoordinate*100.0f + 50.0f,10.0f,yCoordinate*100.0f + 50.0f)); 77 77 78 78 this->attach(model_); … … 84 84 cs_ = new BoxCollisionShape(context); 85 85 cs_->setHalfExtents(Vector3(5, 5, 5)); 86 cs_->setPosition(Vector3(xCoordinate*100 + 50,0,yCoordinate*100 + 50));86 cs_->setPosition(Vector3(xCoordinate*100.0f + 50.0f,0.0f,yCoordinate*100.0f + 50.0f)); 87 87 88 88 this->attachCollisionShape(cs_); -
code/branches/presentationHS15/src/modules/hover/HoverWall.cc
r11029 r11030 87 87 model_ = new Model(context); 88 88 model_->setMeshSource("CuboidBody.mesh"); 89 model_->setScale3D(Vector3(xSize_ , 30, zSize_));90 model_->setPosition(Vector3(xPos_ ,0,zPos_));89 model_->setScale3D(Vector3(xSize_*1.0f, 30.0f, zSize_*1.0f)); 90 model_->setPosition(Vector3(xPos_*1.0f, 0.0f, zPos_*1.0f)); 91 91 92 92 this->attach(model_); … … 97 97 98 98 cs_ = new BoxCollisionShape(context); 99 cs_->setHalfExtents(Vector3(xSize_ , 30, zSize_));100 cs_->setPosition(Vector3(xPos_ ,0,zPos_));99 cs_->setHalfExtents(Vector3(xSize_*1.0f, 30.0f, zSize_*1.0f)); 100 cs_->setPosition(Vector3(xPos_*1.0f, 0.0f, zPos_*1.0f)); 101 101 102 102 this->attachCollisionShape(cs_); -
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 } -
code/branches/presentationHS15/src/orxonox/weaponsystem/ReplenishingMunition.h
r11026 r11030 57 57 58 58 virtual float getProgress(); 59 inline float getReplenishAmount() const59 inline unsigned int getReplenishAmount() const 60 60 { return replenishAmount_; } 61 61 inline float getReplenishInterval() const
Note: See TracChangeset
for help on using the changeset viewer.