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/MovableEntity.cc

    r2374 r2407  
    108108        if (this->isDynamic())
    109109        {
    110             //if (this->isPhysicsRunning())
    111             //    return;
    112110            btTransform transf = this->physicalBody_->getWorldTransform();
    113111            transf.setOrigin(btVector3(position.x, position.y, position.z));
     
    115113        }
    116114
    117         //COUT(0) << "setting position: " << position << std::endl;
    118115        this->node_->setPosition(position);
    119116        positionChanged(false);
     
    212209            OrxAssert(relativeTo == Ogre::Node::TS_LOCAL, "Cannot align physical object relative \
    213210                                                          to any other space than TS_LOCAL.");
    214             //btTransform transf = this->physicalBody_->getWorldTransform();
    215             //this->physicalBody_->setWorldTransform(transf);
    216211        }
    217212
     
    227222            OrxAssert(relativeTo == Ogre::Node::TS_LOCAL, "Cannot align physical object relative \
    228223                                                          to any other space than TS_LOCAL.");
    229             //btTransform transf = this->physicalBody_->getWorldTransform();
    230             //this->physicalBody_->setWorldTransform(transf);
    231224        }
    232225
     
    288281        this->node_->setPosition(Vector3(worldTrans.getOrigin().x(), worldTrans.getOrigin().y(), worldTrans.getOrigin().z()));
    289282        this->node_->setOrientation(Quaternion(worldTrans.getRotation().w(), worldTrans.getRotation().x(), worldTrans.getRotation().y(), worldTrans.getRotation().z()));
    290         COUT(0) << "setting world transform: " << omni_cast<std::string>(node_->getPosition()) << std::endl;
    291283        this->linearVelocity_.x = this->physicalBody_->getLinearVelocity().x();
    292284        this->linearVelocity_.y = this->physicalBody_->getLinearVelocity().y();
Note: See TracChangeset for help on using the changeset viewer.