Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 13, 2009, 6:41:05 PM (15 years ago)
Author:
rgrieder
Message:

Several small fixes and some removed warnings

File:
1 edited

Legend:

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

    r3149 r3159  
    633633    void WorldEntity::lookAt(const Vector3& target, TransformSpace::Enum relativeTo, const Vector3& localDirectionVector)
    634634    {
    635         Vector3 origin;
     635        Vector3 origin(0, 0, 0);
    636636        switch (relativeTo)
    637637        {
     
    660660    {
    661661        Quaternion savedOrientation(this->getOrientation());
    662         Ogre::Node::TransformSpace ogreRelativeTo;
     662        Ogre::Node::TransformSpace ogreRelativeTo = Ogre::Node::TS_LOCAL;
    663663        switch (relativeTo)
    664664        {
     
    772772            break;
    773773        case Kinematic:
    774             this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT | btCollisionObject::CF_KINEMATIC_OBJECT);
     774            this->physicalBody_->setCollisionFlags((this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_STATIC_OBJECT) | btCollisionObject::CF_KINEMATIC_OBJECT);
    775775            break;
    776776        case Static:
    777             this->physicalBody_->setCollisionFlags(this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_KINEMATIC_OBJECT | btCollisionObject::CF_STATIC_OBJECT);
     777            this->physicalBody_->setCollisionFlags((this->physicalBody_->getCollisionFlags() & !btCollisionObject::CF_KINEMATIC_OBJECT) | btCollisionObject::CF_STATIC_OBJECT);
    778778            break;
    779779        case None:
Note: See TracChangeset for help on using the changeset viewer.