Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 11, 2008, 1:54:35 PM (15 years ago)
Author:
rgrieder
Message:
  • Removed debug output
  • Fixed a bug with parentID_ in CollisionShape
  • Reactivated overwrite mechanism in ControllableEntity
  • Build fix in WE for last commit.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/physics/src/orxonox/objects/worldentities/WorldEntity.cc

    r2374 r2407  
    4444
    4545#include "objects/Scene.h"
    46 #include "objects/worldentities/collisionshapes/CollisionShape.h"
    47 #include "objects/worldentities/collisionshapes/CompoundCollisionShape.h"
     46#include "objects/collisionshapes/CollisionShape.h"
     47#include "objects/collisionshapes/CompoundCollisionShape.h"
    4848
    4949namespace orxonox
     
    191191                // static to static/kinematic/dynamic --> merge shapes
    192192                this->childMass_ += object->getMass();
    193                 this->attachCollisionShape(object->getCollisionShape());
     193                this->attachCollisionShape(object->getCollisionShape(), true);
    194194                // Remove the btRigidBody from the child object.
    195195                // That also implies that cannot add a physics WE to the child afterwards.
     
    237237    }
    238238
    239     void WorldEntity::attachCollisionShape(CollisionShape* shape)
    240     {
    241         this->collisionShape_->addChildShape(shape);
     239    void WorldEntity::attachCollisionShape(CollisionShape* shape, bool bWorldEntityRoot)
     240    {
     241        this->collisionShape_->addChildShape(shape, bWorldEntityRoot);
    242242
    243243        if (this->physicalBody_)
Note: See TracChangeset for help on using the changeset viewer.