Changeset 10261 in orxonox.OLD for branches/playability/src/world_entities/projectiles/mbolt.cc
- Timestamp:
- Jan 17, 2007, 4:14:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/mbolt.cc
r10180 r10261 75 75 76 76 dynamic_cast<StaticModel*>(this->getModel())->rebuild(); 77 this->buildObbTree(4);77 //this->buildObbTree(4); 78 78 79 79 this->trail = new Trail(6, 4, .1, this); … … 141 141 } 142 142 143 /* 144 void MBolt::collidesWith(WorldEntity* entity, const Vector& location) 143 void MBolt::hit (WorldEntity* entity, float damage) 145 144 { 146 145 … … 148 147 this->destroy( entity ); 149 148 this->hitEntity = entity; 150 dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage());149 // dynamic_cast<SpaceShip*>(entity)->damage(this->getPhysDamage(),this->getElecDamage()); 151 150 //this->destroy(this); 152 151 this->deactivate(); … … 154 153 return; 155 154 156 //dynamic_cast<SpaceShip*>(entity)->damage( this->getPhysDamage(), this->getElecDamage()); 157 //entity->destroy(this); 158 //this->deactivate(); 159 }*/ 155 } 160 156 161 157 /**
Note: See TracChangeset
for help on using the changeset viewer.