Changeset 3159 for code/branches/pch/src/orxonox/objects/worldentities
- Timestamp:
- Jun 13, 2009, 6:41:05 PM (15 years ago)
- Location:
- code/branches/pch/src/orxonox/objects/worldentities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/pch/src/orxonox/objects/worldentities/WorldEntity.cc
r3149 r3159 633 633 void WorldEntity::lookAt(const Vector3& target, TransformSpace::Enum relativeTo, const Vector3& localDirectionVector) 634 634 { 635 Vector3 origin ;635 Vector3 origin(0, 0, 0); 636 636 switch (relativeTo) 637 637 { … … 660 660 { 661 661 Quaternion savedOrientation(this->getOrientation()); 662 Ogre::Node::TransformSpace ogreRelativeTo ;662 Ogre::Node::TransformSpace ogreRelativeTo = Ogre::Node::TS_LOCAL; 663 663 switch (relativeTo) 664 664 { … … 772 772 break; 773 773 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); 775 775 break; 776 776 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); 778 778 break; 779 779 case None: -
code/branches/pch/src/orxonox/objects/worldentities/triggers/Trigger.cc
r3110 r3159 237 237 { 238 238 if (( (this->latestState_ & 2) && this->bStayActive_ && (this->remainingActivations_ <= 0)) 239 || (!(this->latestState_ & 2) ) && (this->remainingActivations_ == 0))239 || (!(this->latestState_ & 2) && (this->remainingActivations_ == 0))) 240 240 return false; 241 241 else
Note: See TracChangeset
for help on using the changeset viewer.