- Timestamp:
- Dec 2, 2008, 4:59:36 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/physics/src/orxonox/objects/worldentities/MovableEntity.cc
r2304 r2306 32 32 #include "BulletDynamics/Dynamics/btRigidBody.h" 33 33 34 #include "util/Debug.h" 34 35 #include "util/Exception.h" 35 36 #include "core/CoreIncludes.h" … … 220 221 this->node_->setOrientation(Quaternion(worldTrans.getRotation().w(), worldTrans.getRotation().x(), worldTrans.getRotation().y(), worldTrans.getRotation().z())); 221 222 const btVector3& velocity = this->physicalBody_->getLinearVelocity(); 222 this->velocity_ = Vector3(velocity.x(), velocity.y(), velocity.z()); 223 this->velocity_.x = velocity.x(); 224 this->velocity_.y = velocity.y(); 225 this->velocity_.z = velocity.z(); 223 226 velocityChanged(); 224 227 positionChanged();
Note: See TracChangeset
for help on using the changeset viewer.