Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3105


Ignore:
Timestamp:
May 28, 2009, 7:15:03 AM (15 years ago)
Author:
landauf
Message:

fixed self-collision with projectiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/objects/weaponsystem/projectiles/Projectile.cc

    r3088 r3105  
    4646{
    4747    CreateFactory(Projectile);
    48  
     48
    4949    Projectile::Projectile(BaseObject* creator) : MovableEntity(creator)
    5050    {
     
    6060        {
    6161            this->enableCollisionCallback();
    62 
     62            this->setCollisionResponse(false);
    6363            this->setCollisionType(Kinematic);
    6464
    6565            SphereCollisionShape* shape = new SphereCollisionShape(this);
    66             shape->setRadius(10);
     66            shape->setRadius(20);
    6767            this->attachCollisionShape(shape);
    6868
     
    104104        {
    105105            if (otherObject == this->owner_)
    106                 return true;
     106                return false;
    107107
    108108            this->bDestroy_ = true;
Note: See TracChangeset for help on using the changeset viewer.