Changeset 10760 for code/branches/hoverHS15/src/modules/hover/HoverWall.cc
- Timestamp:
- Nov 2, 2015, 6:01:56 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/src/modules/hover/HoverWall.cc
r10751 r10760 50 50 { 51 51 RegisterObject(HoverWall); 52 model_ = new Model(context); 53 cs_ = new BoxCollisionShape(context); 54 model_->setMeshSource("cube.mesh"); 55 model_->setScale3D(Vector3(100, 30, 2)); 56 model_->setPosition(Vector3(100,0,100)); 57 cs_->setPosition(Vector3(100,0,100)); 58 cs_->setHalfExtents(Vector3(100, 30, 2)); 59 60 61 52 model_ = NULL; 53 cs_ = NULL; 62 54 } 63 55 … … 65 57 { 66 58 RegisterObject(HoverWall); 59 67 60 model_ = new Model(context); 61 model_->setMeshSource("cube.mesh"); 62 model_->setScale3D(Vector3(100, 30, 2)); 63 model_->setPosition(Vector3(x*100-50,0,y*100-50)); 64 65 this->attach(model_); 66 67 this->enableCollisionCallback(); 68 this->setCollisionResponse(true); 69 this->setCollisionType(Static); 70 68 71 cs_ = new BoxCollisionShape(context); 69 model_->setMeshSource("cube.mesh"); 70 model_->setScale3D(Vector3(50, 30, 2)); 71 model_->setPosition(Vector3(x*100-50,0,y*100-50)); 72 cs_->setHalfExtents(Vector3(100, 30, 2)); 72 73 cs_->setPosition(Vector3(x*100-50,0,y*100-50)); 73 cs_->setHalfExtents(Vector3(50, 30, 2));74 74 75 76 75 this->attachCollisionShape(cs_); 77 76 } 78 77
Note: See TracChangeset
for help on using the changeset viewer.