- Timestamp:
- Jun 13, 2009, 6:41:05 PM (15 years ago)
- File:
-
- 1 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:
Note: See TracChangeset
for help on using the changeset viewer.