Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 22, 2008, 10:23:29 PM (17 years ago)
Author:
rgrieder
Message:
  • Forgot to account for collision shape position and orientation when attaching WEs
  • addChildShape —> attach in CompoundCollisionShape
  • Fixed an issue which allowed WE's to detach themselves from non-parents.
  • Fixed an issue that occurred when physics was not active before attaching
  • Added some forgotten const in WE (physics)
  • When attaching WE's the child doesn't get modified anymore. Alternative: notifyDetached() and notifyBeingAttached(this) —> the child does the work
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/presentation/src/orxonox/objects/collisionshapes/CollisionShape.cc

    r2515 r2527  
    6262        // Detach from parent
    6363        if (this->isInitialized() && this->parent_)
    64             this->parent_->removeChildShape(this);
     64            this->parent_->detach(this);
    6565    }
    6666
     
    8787        CompoundCollisionShape* parent = dynamic_cast<CompoundCollisionShape*>(Synchronisable::getSynchronisable(this->parentID_));
    8888        if (parent)
    89             parent->addChildShape(this);
     89            parent->attach(this);
    9090    }
    9191
     
    9393    {
    9494        if (this->parent_)
    95             this->parent_->updateChildShape(this);
     95            this->parent_->updateAttachedShape(this);
    9696    }
    9797
Note: See TracChangeset for help on using the changeset viewer.