- Timestamp:
 - Dec 17, 2008, 9:11:12 AM (17 years ago)
 - File:
 - 
          
- 1 edited
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
code/branches/presentation/src/orxonox/objects/weaponSystem/projectiles/Projectile.cc
r2497 r2501 54 54 55 55 // Get notification about collisions 56 this->enableCollisionCallback();57 56 58 this->setCollisionType(Kinematic); 57 if (Core::isMaster()) 58 { 59 this->enableCollisionCallback(); 59 60 60 SphereCollisionShape* shape = new SphereCollisionShape(this); 61 shape->setRadius(10); 62 this->attachCollisionShape(shape); 61 this->setCollisionType(Kinematic); 63 62 64 if(Core::isMaster()) 65 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject))); 63 SphereCollisionShape* shape = new SphereCollisionShape(this); 64 shape->setRadius(10); 65 this->attachCollisionShape(shape); 66 67 this->destroyTimer_.setTimer(this->lifetime_, false, this, createExecutor(createFunctor(&Projectile::destroyObject))); 68 } 66 69 } 67 70  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






