Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 17, 2008, 5:41:29 AM (15 years ago)
Author:
landauf
Message:
  • some changes, maybe fixed a crash, not sure
  • fixed strange camera behavior
File:
1 edited

Legend:

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

    r2494 r2497  
    104104            this->node_->removeAllChildren();
    105105
     106            if (this->physicalBody_)
     107            {
     108                this->deactivatePhysics();
     109                delete this->physicalBody_;
     110            }
     111            delete this->collisionShape_;
     112
    106113            if (this->getScene()->getSceneManager())
    107114                this->getScene()->getSceneManager()->destroySceneNode(this->node_->getName());
    108 
    109             // TODO: Detach from parent and detach all children.
    110 
    111             if (this->physicalBody_)
    112             {
    113                 this->deactivatePhysics();
    114                 delete this->physicalBody_;
    115             }
    116             delete this->collisionShape_;
    117115        }
    118116    }
Note: See TracChangeset for help on using the changeset viewer.