Changeset 10095 in orxonox.OLD for branches/playability/src/world_entities/projectiles/swarm_projectile.cc
- Timestamp:
- Dec 19, 2006, 11:18:22 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/projectiles/swarm_projectile.cc
r10087 r10095 59 59 this->physDamage = 200; 60 60 61 this->trail = new Trail(2.5,4,.2 );62 this->trail->setParent( this);61 this->trail = new Trail(2.5,4,.2, this); 62 //this->trail->setParent( this); 63 63 this->trail->setTexture( "maps/laser.png"); 64 64 } … … 240 240 this->lastDir = this->curDir; 241 241 this->curDir = this->velocity; 242 if( (this->getAbsCoor() - this->target->getAbsCoor()).len() < 4) // FIXME Temp fake workaround for collision :) 243 { 244 dynamic_cast<WorldEntity*>(target)->destroy( this); 245 this->destroy( this); 246 } 242 247 } 243 248
Note: See TracChangeset
for help on using the changeset viewer.