Changeset 10287
- Timestamp:
- Feb 28, 2015, 11:50:41 PM (10 years ago)
- Location:
- code/trunk/src/modules/weapons/projectiles
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/weapons/projectiles/BasicProjectile.cc
r10216 r10287 82 82 if (!this->bDestroy_ && GameMode::isMaster()) 83 83 { 84 if (otherObject == this->getShooter() ) // Prevents you from shooting yourself84 if (otherObject == this->getShooter() || otherObject->isA(Class(BasicProjectile))) // Prevents you from shooting yourself or other projectiles 85 85 return false; 86 86 -
code/trunk/src/modules/weapons/projectiles/Projectile.cc
r10216 r10287 58 58 this->enableCollisionCallback(); 59 59 this->setCollisionResponse(false); 60 this->setCollisionType( Kinematic);60 this->setCollisionType(Dynamic); 61 61 62 62 SphereCollisionShape* shape = new SphereCollisionShape(this->getContext());
Note: See TracChangeset
for help on using the changeset viewer.