- Timestamp:
- Dec 17, 2008, 9:11:12 AM (16 years ago)
- Location:
- code/branches/presentation/src/orxonox/objects/weaponSystem
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation/src/orxonox/objects/weaponSystem/Weapon.cc
r2493 r2501 50 50 this->magazineLoadingTime_ = 0; 51 51 this->bReloading_ = false; 52 53 this->setObjectMode(0x0); 52 54 } 53 55 -
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.