Changeset 10928 for code/branches/hoverHS15/src/modules/hover
- Timestamp:
- Dec 7, 2015, 2:05:58 PM (9 years ago)
- Location:
- code/branches/hoverHS15/src/modules/hover
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hoverHS15/src/modules/hover/Hover.cc
r10900 r10928 109 109 void Hover::tick(float dt) 110 110 { 111 111 112 SUPER(Hover, tick, dt); 112 113 … … 125 126 LevelOut(); 126 127 firstTick = false; 128 129 //Outer Walls 130 for(int i = 0; i<10; i++){ 131 new HoverWall(origin_->getContext(), 0, i+1, 1); 132 new HoverWall(origin_->getContext(), 10, i+1, 1); 133 new HoverWall(origin_->getContext(), i+1, 0, 2); 134 new HoverWall(origin_->getContext(), i+1, 10, 2); 135 } 127 136 128 137 for(int y=0; y<10; y++){ -
code/branches/hoverHS15/src/modules/hover/HoverFlag.cc
r10894 r10928 96 96 { 97 97 SUPER(HoverFlag, XMLPort, xmlelement, mode); 98 99 // XMLPortParam(HoverFlag, "height", setHeight, getHeight, xmlelement, mode);100 //XMLPortParam(HoverFlag, "width", setWidth, getWidth, xmlelement, mode);101 98 } 102 99 … … 119 116 bool HoverFlag::collidesAgainst(WorldEntity* otherObject, const btCollisionShape* ownCollisionShape, btManifoldPoint& contactPoint) 120 117 { 121 122 123 if(otherObject->isA(Class(HoverShip))){ 124 125 orxout()<<"TestCollision"<<endl; 118 if(otherObject->isA(Class(HoverShip))) 126 119 collided_ = true; 127 //this->destroyLater();128 }129 130 131 /*if (GameMode::isMaster() && enableCollisionDamage_)132 {133 Pawn* victim = orxonox_cast<Pawn*>(otherObject);134 if (victim)135 {136 float damage = this->collisionDamage_ * (victim->getVelocity() - this->getVelocity()).length();137 victim->hit(0, contactPoint, ownCollisionShape, damage);138 }139 }*/140 141 120 return false; 142 121 }
Note: See TracChangeset
for help on using the changeset viewer.