Changeset 2780 for code/trunk
- Timestamp:
- Mar 12, 2009, 7:36:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/objects/worldentities/MobileEntity.cc
r2710 r2780 182 182 // We use a dynamic body. So we translate our node accordingly. 183 183 this->node_->setPosition(Vector3(worldTrans.getOrigin().x(), worldTrans.getOrigin().y(), worldTrans.getOrigin().z())); 184 this->node_->setOrientation(Quaternion(worldTrans.getRotation().w(), worldTrans.getRotation().x(), worldTrans.getRotation().y(), worldTrans.getRotation().z())); 184 btQuaternion temp(worldTrans.getRotation()); 185 this->node_->setOrientation(Quaternion(temp.w(), temp.x(), temp.y(), temp.z())); 185 186 this->linearVelocity_.x = this->physicalBody_->getLinearVelocity().x(); 186 187 this->linearVelocity_.y = this->physicalBody_->getLinearVelocity().y();
Note: See TracChangeset
for help on using the changeset viewer.