Changeset 11030 for code/branches/presentationHS15/src/modules/hover
- Timestamp:
- Jan 3, 2016, 9:28:44 PM (9 years ago)
- Location:
- code/branches/presentationHS15/src/modules/hover
- Files:
-
- 3 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_);
Note: See TracChangeset
for help on using the changeset viewer.