Changeset 11004 for code/branches/cpp11_v2/src/modules/weapons
- Timestamp:
- Dec 30, 2015, 10:07:09 PM (9 years ago)
- Location:
- code/branches/cpp11_v2/src/modules/weapons/projectiles
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/cpp11_v2/src/modules/weapons/projectiles/GravityBomb.cc
r10622 r11004 28 28 this->timeToLife_= LIFETIME; 29 29 this->setCollisionResponse(false); 30 this->setCollisionType(WorldEntity:: Dynamic);30 this->setCollisionType(WorldEntity::CollisionType::Dynamic); 31 31 this->enableCollisionCallback(); 32 32 -
code/branches/cpp11_v2/src/modules/weapons/projectiles/IceGunProjectile.cc
r10629 r11004 89 89 Vector3 offset = this->getWorldPosition() - otherObject->getWorldPosition(); 90 90 freezer->setPosition(Vector3(0,0,0)); 91 freezer->translate(offset, WorldEntity:: World);91 freezer->translate(offset, WorldEntity::TransformSpace::World); 92 92 // Start the freezing effect. 93 93 freezer->startFreezing(); -
code/branches/cpp11_v2/src/modules/weapons/projectiles/LightningGunProjectile.cc
r10622 r11004 48 48 this->textureIndex_ = 1; 49 49 this->setMass(2); 50 this->setCollisionType( Dynamic);50 this->setCollisionType(CollisionType::Dynamic); 51 51 this->maxTextureIndex_ = 8; 52 52 this->textureTimer_.setTimer(0.01f, true, createExecutor(createFunctor(&LightningGunProjectile::changeTexture, this))); -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Projectile.cc
r10765 r11004 57 57 this->enableCollisionCallback(); 58 58 this->setCollisionResponse(false); 59 this->setCollisionType( Dynamic);59 this->setCollisionType(CollisionType::Dynamic); 60 60 61 61 // Create a sphere collision shape and attach it to the projectile. -
code/branches/cpp11_v2/src/modules/weapons/projectiles/Rocket.cc
r11000 r11004 70 70 if (GameMode::isMaster()) 71 71 { 72 this->setCollisionType(WorldEntity:: Kinematic);72 this->setCollisionType(WorldEntity::CollisionType::Kinematic); 73 73 this->setVelocity(0,0,-100); 74 74 … … 92 92 this->enableCollisionCallback(); 93 93 this->setCollisionResponse(false); 94 this->setCollisionType( Kinematic);94 this->setCollisionType(CollisionType::Kinematic); 95 95 96 96 // Add collision shape -
code/branches/cpp11_v2/src/modules/weapons/projectiles/RocketOld.cc
r11000 r11004 70 70 if (GameMode::isMaster()) 71 71 { 72 this->setCollisionType(WorldEntity:: Kinematic);72 this->setCollisionType(WorldEntity::CollisionType::Kinematic); 73 73 this->setVelocity(0,0,-100); 74 74 … … 92 92 this->enableCollisionCallback(); 93 93 this->setCollisionResponse(false); 94 this->setCollisionType( Kinematic);94 this->setCollisionType(CollisionType::Kinematic); 95 95 96 96 // Add collision shape -
code/branches/cpp11_v2/src/modules/weapons/projectiles/SimpleRocket.cc
r11000 r11004 70 70 if (GameMode::isMaster()) 71 71 { 72 this->setCollisionType(WorldEntity:: Kinematic);72 this->setCollisionType(WorldEntity::CollisionType::Kinematic); 73 73 this->fuel_ = true; 74 74 … … 87 87 this->enableCollisionCallback(); 88 88 this->setCollisionResponse(false); 89 this->setCollisionType( Kinematic);89 this->setCollisionType(CollisionType::Kinematic); 90 90 91 91 // Add collision shape.
Note: See TracChangeset
for help on using the changeset viewer.